/// <summary> /// Gets whether the specified year is a leap year. /// </summary> /// <param name="year">The year.</param> /// <returns> /// Returns <c>true</c> if the specified year is a leap year; otherwise <c>false</c>. /// </returns> public static bool IsLeapYear(int year) { return(TimeUtils.IsLeapYear(year)); }
/// <summary> /// Gets whether the specified <paramref name="date"/> is a leap year. /// </summary> /// <param name="date">The date.</param> /// <returns> /// Returns <c>true</c> if the year of the specified <paramref name="date"/> is a leap year; otherwise <c>false</c>. /// </returns> public static bool IsLeapYear(DateTimeOffset date) { return(TimeUtils.IsLeapYear(date)); }