Reset the date to the last day of the week.
(self)
| 447 | return dt.start_of("day") |
| 448 | |
| 449 | def _end_of_week(self) -> Self: |
| 450 | """ |
| 451 | Reset the date to the last day of the week. |
| 452 | """ |
| 453 | dt = self |
| 454 | |
| 455 | if self.day_of_week != pendulum._WEEK_ENDS_AT: |
| 456 | dt = self.next(pendulum._WEEK_ENDS_AT) |
| 457 | |
| 458 | return dt.end_of("day") |
| 459 | |
| 460 | def next(self, day_of_week: WeekDay | None = None) -> Self: |
| 461 | """ |