Reset the date to the first day of the decade.
(self)
| 404 | return self.set(self.year, 12, 31) |
| 405 | |
| 406 | def _start_of_decade(self) -> Self: |
| 407 | """ |
| 408 | Reset the date to the first day of the decade. |
| 409 | """ |
| 410 | year = self.year - self.year % YEARS_PER_DECADE |
| 411 | |
| 412 | return self.set(year, 1, 1) |
| 413 | |
| 414 | def _end_of_decade(self) -> Self: |
| 415 | """ |