MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / _start_of_year

Method _start_of_year

src/pendulum/datetime.py:850–854  ·  view source on GitHub ↗

Reset the date to the first day of the year and the time to 00:00:00.

(self)

Source from the content-addressed store, hash-verified

848 return self.set(self.year, self.month, self.days_in_month, 23, 59, 59, 999999)
849
850 def _start_of_year(self) -> Self:
851 """
852 Reset the date to the first day of the year and the time to 00:00:00.
853 """
854 return self.set(self.year, 1, 1, 0, 0, 0, 0)
855
856 def _end_of_year(self) -> Self:
857 """

Callers

nothing calls this directly

Calls 1

setMethod · 0.95

Tested by

no test coverage detected