Reset the date to the first day of the week and the time to 00:00:00.
(self)
| 896 | return self.set(year, 12, 31, 23, 59, 59, 999999) |
| 897 | |
| 898 | def _start_of_week(self) -> Self: |
| 899 | """ |
| 900 | Reset the date to the first day of the week |
| 901 | and the time to 00:00:00. |
| 902 | """ |
| 903 | dt = self |
| 904 | |
| 905 | if self.day_of_week != pendulum._WEEK_STARTS_AT: |
| 906 | dt = self.previous(pendulum._WEEK_STARTS_AT) |
| 907 | |
| 908 | return dt.start_of("day") |
| 909 | |
| 910 | def _end_of_week(self) -> Self: |
| 911 | """ |