Exemplo n.º 1
0
 /// <summary>
 /// Is special year a leap year.
 /// </summary>
 /// <param name="dt"></param>
 /// <param name="calendar"></param>
 /// <returns></returns>
 public static bool IsLeapYear(this DateTime dt, ChineseLunisolarCalendar calendar) => ChineseDateHelper.IsLeapYear(calendar, dt);
Exemplo n.º 2
0
 /// <summary>
 /// Is special year a leap year.
 /// </summary>
 /// <param name="d"></param>
 /// <param name="calendar"></param>
 /// <returns></returns>
 public static bool IsLeapYear(this DateInfo d, ChineseLunisolarCalendar calendar) => ChineseDateHelper.IsLeapYear(calendar, d);
Exemplo n.º 3
0
 /// <summary>
 /// Is special year a leap year.
 /// </summary>
 /// <param name="dt"></param>
 /// <returns></returns>
 public static bool IsLeapYear(this DateTime dt) => ChineseDateHelper.IsLeapYear(null, dt);
Exemplo n.º 4
0
 /// <summary>
 /// Is special year a leap year.
 /// </summary>
 /// <param name="d"></param>
 /// <returns></returns>
 public static bool IsLeapYear(this DateInfo d) => ChineseDateHelper.IsLeapYear(null, d);