previous_quarter

Function previous_quarter 

Source
pub fn previous_quarter(date: &NaiveDate) -> Option<NaiveDate>
Expand description

Returns the first day of the previous quarter.

If the current date falls in the first quarter of the year, this will shift to the last quarter of the previous year.