MCPcopy Create free account
hub / github.com/python-pendulum/pendulum / _end_of_year

Method _end_of_year

src/pendulum/date.py:400–404  ·  view source on GitHub ↗

Reset the date to the last day of the year.

(self)

Source from the content-addressed store, hash-verified

398 return self.set(self.year, 1, 1)
399
400 def _end_of_year(self) -> Self:
401 """
402 Reset the date to the last day of the year.
403 """
404 return self.set(self.year, 12, 31)
405
406 def _start_of_decade(self) -> Self:
407 """

Callers

nothing calls this directly

Calls 1

setMethod · 0.95

Tested by

no test coverage detected