is_leap_year

Function is_leap_year 

Source
pub const fn is_leap_year(year: i32) -> bool
Expand description

Returns if the provided year is a leap year in the proleptic Gregorian calendar, assuming the year has already been range-validated.

Behavior is unspecified for years outside the valid range.

Note: This function is not exposed by the time crate. It is an implementation detail.