/// <summary> /// Is special day a leap day. /// </summary> /// <param name="dt"></param> /// <param name="calendar"></param> /// <returns></returns> public static bool IsLeapDay(this DateTime dt, ChineseLunisolarCalendar calendar) => ChineseDateHelper.IsLeapDay(calendar, dt);
/// <summary> /// Is special day a leap day. /// </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> /// Is special day a leap day. /// </summary> /// <param name="dt"></param> /// <returns></returns> public static bool IsLeapDay(this DateTime dt) => ChineseDateHelper.IsLeapDay(null, dt);
/// <summary> /// Is special day a leap day. /// </summary> /// <param name="d"></param> /// <returns></returns> public static bool IsLeapDay(this DateInfo d) => ChineseDateHelper.IsLeapDay(null, d);