Function month_to_quarter

Source
pub fn month_to_quarter(m: u32) -> u32
Expand description

Converts a month number (1-12) to a quarter number (1-4). Panics if month is invalid (should not happen with valid NaiveDate).