def rollback(self, date):
        """Roll date backward to nearest start of year"""
        if self.onOffset(date):
            return date
        else:
            return date - YearBegin(month=self.month)
Roll date backward to nearest start of year
xarray/coding/cftime_offsets.py