Roll date backward to nearest start of year
(self, date)
| 577 | return date + YearBegin(month=self.month) |
| 578 | |
| 579 | def rollback(self, date): |
| 580 | """Roll date backward to nearest start of year""" |
| 581 | if self.onOffset(date): |
| 582 | return date |
| 583 | else: |
| 584 | return date - YearBegin(month=self.month) |
| 585 | |
| 586 | |
| 587 | class YearEnd(YearOffset): |