/// <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);
/// <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);
/// <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);
/// <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);