Roll date forward to nearest end of year
(self, date)
| 595 | return date.day == date.daysinmonth and date.month == self.month |
| 596 | |
| 597 | def rollforward(self, date): |
| 598 | """Roll date forward to nearest end of year""" |
| 599 | if self.onOffset(date): |
| 600 | return date |
| 601 | else: |
| 602 | return date + YearEnd(month=self.month) |
| 603 | |
| 604 | def rollback(self, date): |
| 605 | """Roll date backward to nearest end of year""" |