Reset the date to the last day of the century.
(self)
| 428 | return self.set(year, 1, 1) |
| 429 | |
| 430 | def _end_of_century(self) -> Self: |
| 431 | """ |
| 432 | Reset the date to the last day of the century. |
| 433 | """ |
| 434 | year = self.year - 1 - (self.year - 1) % YEARS_PER_CENTURY + YEARS_PER_CENTURY |
| 435 | |
| 436 | return self.set(year, 12, 31) |
| 437 | |
| 438 | def _start_of_week(self) -> Self: |
| 439 | """ |