Function is_leap_year

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

Returns whether year is a leap year in the proleptic Gregorian calendar.

ยงExamples

use ailloli_ui_core::date_picker::is_leap_year;

assert!(is_leap_year(2000));
assert!(!is_leap_year(2100));