/// <summary>
 /// Determine whether the specified month is a leap month.<br />
 /// 判断指定的月份是否为闰月。
 /// </summary>
 /// <param name="d"></param>
 /// <param name="calendar"></param>
 /// <returns></returns>
 public static bool IsLeapMonth(this DateInfo d, ChineseLunisolarCalendar calendar) => ChineseDateHelper.IsLeapMonth(calendar, d);
Esempio n. 2
0
 /// <summary>
 /// Is current month a leap month.<br />
 /// 当前月份是否为闰月
 /// </summary>
 /// <returns></returns>
 public bool IsLeapMonth() => ChineseDateHelper.IsLeapMonth(Calendar, InternalDateTime);
 /// <summary>
 /// Determine whether the specified month is a leap month.<br />
 /// 判断指定的月份是否为闰月。
 /// </summary>
 /// <param name="d"></param>
 /// <returns></returns>
 public static bool IsLeapMonth(this DateInfo d) => ChineseDateHelper.IsLeapMonth(null, d);
 /// <summary>
 /// Determine whether the specified month is a leap month.<br />
 /// 判断指定的月份是否为闰月。
 /// </summary>
 /// <param name="dt"></param>
 /// <returns></returns>
 public static bool IsLeapMonth(this DateTime dt) => ChineseDateHelper.IsLeapMonth(null, dt);