Skip to main content

month_from_index

Function month_from_index 

Source
pub fn month_from_index(index: u64) -> Option<Month>
Expand description

Converts an integer in the range 1-12 into the corresponding Month enum. Values outside the 1-12 range are converted to None.