Roll date backward to nearest end of year
(self, date)
| 602 | return date + YearEnd(month=self.month) |
| 603 | |
| 604 | def rollback(self, date): |
| 605 | """Roll date backward to nearest end of year""" |
| 606 | if self.onOffset(date): |
| 607 | return date |
| 608 | else: |
| 609 | return date - YearEnd(month=self.month) |
| 610 | |
| 611 | |
| 612 | class Day(BaseCFTimeOffset): |