Reset the date to the first day of the century.
(self)
| 420 | return self.set(year, 12, 31) |
| 421 | |
| 422 | def _start_of_century(self) -> Self: |
| 423 | """ |
| 424 | Reset the date to the first day of the century. |
| 425 | """ |
| 426 | year = self.year - 1 - (self.year - 1) % YEARS_PER_CENTURY + 1 |
| 427 | |
| 428 | return self.set(year, 1, 1) |
| 429 | |
| 430 | def _end_of_century(self) -> Self: |
| 431 | """ |