pavex::time::util

Function days_in_month

pub const fn days_in_month(month: Month, year: i32) -> u8
Expand description

Get the number of days in the month of a given year.

assert_eq!(util::days_in_month(Month::February, 2020), 29);