\SLunar

Summary

Methods
Properties
Constants
lYearDays()
leapDays()
leapMonth()
monthDays()
SLunar()
cyclical()
display()
cDay()
$year
$month
$day
$isLeap
$yearCyl
$dayCyl
$monCyl
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$lunarInfo
N/A

Properties

$year

$year : integer

农历年分

Type

integer

$month

$month : integer

农历月分

Type

integer

$day

$day : integer

农历日期

Type

integer

$isLeap

$isLeap : boolean

是否是润年

Type

boolean

$yearCyl

$yearCyl : integer

离1900之间有多少个年份

Type

integer

$dayCyl

$dayCyl : integer

离1900之间有多少天

Type

integer

$monCyl

$monCyl : integer

离1900之间有多少个月份

Type

integer

$lunarInfo

$lunarInfo : 

Type

Methods

lYearDays()

lYearDays(  $y) 

传回农历 y年的总天数

Parameters

$y

leapDays()

leapDays(  $y) 

传回农历 y年闰月的天数

Parameters

$y

leapMonth()

leapMonth(  $y) 

传回农历 y年闰哪个月 1-12 , 没闰传回 0

Parameters

$y

monthDays()

monthDays(  $y,   $m) 

传回农历 y年m月的总天数

Parameters

$y
$m

SLunar()

SLunar(  $year,   $month = 1,   $day = 1) 

创建农历日期对象

Parameters

$year
$month
$day

cyclical()

cyclical(  $num) 

Parameters

$num

display()

display() 

输出,根据需要直接修改本函数或在派生类中重写本函数

cDay()

cDay(  $d) 

中文日期

Parameters

$d