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

Method _start_of_year

src/pendulum/date.py:394–398  ·  view source on GitHub ↗

Reset the date to the first day of the year.

(self)

Source from the content-addressed store, hash-verified

392 return self.set(self.year, self.month, self.days_in_month)
393
394 def _start_of_year(self) -> Self:
395 """
396 Reset the date to the first day of the year.
397 """
398 return self.set(self.year, 1, 1)
399
400 def _end_of_year(self) -> Self:
401 """

Callers

nothing calls this directly

Calls 1

setMethod · 0.95

Tested by

no test coverage detected