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