Skip to main content

is_leap_year

Function is_leap_year 

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

Returns true if and only if the given year is a leap year.

A leap year is a year with 366 days. Non-leap years have 365 days.