Function days_in_month
pub const fn days_in_month(month: Month, year: i32) -> u8
Get the number of days in the month of a given year.
# use time::{Month, util};
assert_eq!(util::days_in_month(Month::February, 2020), 29);
days_in_monthpub const fn days_in_month(month: Month, year: i32) -> u8
Get the number of days in the month of a given year.
# use time::{Month, util};
assert_eq!(util::days_in_month(Month::February, 2020), 29);