C# Class Cosmos.Date.Chinese.CosmosDateInfoLeapExtensions

Cosmos DateInfo leap extensions.
Mostra file Open project: cosmos-loops/cosmos-standard

Public Methods

Method Description
IsLeapDay ( DateInfo d ) : bool

Determine whether the specified day is a leap day.
判断指定的日是否为闰日。

IsLeapDay ( DateInfo d, ChineseLunisolarCalendar calendar ) : bool

Determine whether the specified day is a leap day.
判断指定的日是否为闰日。

IsLeapMonth ( DateInfo d ) : bool

Determine whether the specified month is a leap month.
判断指定的月份是否为闰月。

IsLeapMonth ( DateInfo d, ChineseLunisolarCalendar calendar ) : bool

Determine whether the specified month is a leap month.
判断指定的月份是否为闰月。

IsLeapYear ( DateInfo d ) : bool

Determine whether the specified year is a leap year.
判断指定的年份是否为闰年。

IsLeapYear ( DateInfo d, ChineseLunisolarCalendar calendar ) : bool

Determine whether the specified year is a leap year.
判断指定的年份是否为闰年。

Method Details

IsLeapDay() public static method

Determine whether the specified day is a leap day.
判断指定的日是否为闰日。
public static IsLeapDay ( DateInfo d ) : bool
d DateInfo
return bool

IsLeapDay() public static method

Determine whether the specified day is a leap day.
判断指定的日是否为闰日。
public static IsLeapDay ( DateInfo d, ChineseLunisolarCalendar calendar ) : bool
d DateInfo
calendar ChineseLunisolarCalendar
return bool

IsLeapMonth() public static method

Determine whether the specified month is a leap month.
判断指定的月份是否为闰月。
public static IsLeapMonth ( DateInfo d ) : bool
d DateInfo
return bool

IsLeapMonth() public static method

Determine whether the specified month is a leap month.
判断指定的月份是否为闰月。
public static IsLeapMonth ( DateInfo d, ChineseLunisolarCalendar calendar ) : bool
d DateInfo
calendar ChineseLunisolarCalendar
return bool

IsLeapYear() public static method

Determine whether the specified year is a leap year.
判断指定的年份是否为闰年。
public static IsLeapYear ( DateInfo d ) : bool
d DateInfo
return bool

IsLeapYear() public static method

Determine whether the specified year is a leap year.
判断指定的年份是否为闰年。
public static IsLeapYear ( DateInfo d, ChineseLunisolarCalendar calendar ) : bool
d DateInfo
calendar ChineseLunisolarCalendar
return bool