pub fn pred_year(date: NaiveDate) -> NaiveDate
Creates a date with the previous year based on the given date.