Skip to main content

days_in_month

Function days_in_month 

Source
pub exec fn days_in_month(year: u16, month: u8) -> u8
Expand description
returns
dim!(year, month),

Returns the number of days in the specified month of a given year. Handles February leap years (29 days). Invalid months return 0.