Reset the date to the last day of the decade.
(self)
| 412 | return self.set(year, 1, 1) |
| 413 | |
| 414 | def _end_of_decade(self) -> Self: |
| 415 | """ |
| 416 | Reset the date to the last day of the decade. |
| 417 | """ |
| 418 | year = self.year - self.year % YEARS_PER_DECADE + YEARS_PER_DECADE - 1 |
| 419 | |
| 420 | return self.set(year, 12, 31) |
| 421 | |
| 422 | def _start_of_century(self) -> Self: |
| 423 | """ |