Whether year has a 29th of February.
Signature
pub const fn is_leap(year: i32) -> boolExample
use fusuma::is_leap;
assert!(is_leap(2024));
assert!(!is_leap(2100), "a century is not, unless it divides by 400");
assert!(is_leap(2000));Whether year has a 29th of February.
pub const fn is_leap(year: i32) -> booluse fusuma::is_leap;
assert!(is_leap(2024));
assert!(!is_leap(2100), "a century is not, unless it divides by 400");
assert!(is_leap(2000));