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

Method _end_of_year

src/pendulum/datetime.py:856–861  ·  view source on GitHub ↗

Reset the date to the last day of the year and the time to 23:59:59.999999.

(self)

Source from the content-addressed store, hash-verified

854 return self.set(self.year, 1, 1, 0, 0, 0, 0)
855
856 def _end_of_year(self) -> Self:
857 """
858 Reset the date to the last day of the year
859 and the time to 23:59:59.999999.
860 """
861 return self.set(self.year, 12, 31, 23, 59, 59, 999999)
862
863 def _start_of_decade(self) -> Self:
864 """

Callers

nothing calls this directly

Calls 1

setMethod · 0.95

Tested by

no test coverage detected