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

Method _end_of_month

src/pendulum/datetime.py:843–848  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

841 return self.set(self.year, self.month, 1, 0, 0, 0, 0)
842
843 def _end_of_month(self) -> Self:
844 """
845 Reset the date to the last day of the month
846 and the time to 23:59:59.999999.
847 """
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 """

Callers

nothing calls this directly

Calls 1

setMethod · 0.95

Tested by

no test coverage detected