previous_year

Function previous_year 

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

Returns the first day of the year (January 1) of the previous year.