year_helper

Function is_leap_year

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

Determine whether a year is a leap year or not.

A year is a leap year if following conditions are satisfied:

  • Year is multiple of 400.
  • Year is multiple of 4 and not multiple of 100.