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

Method _end_of_month

src/pendulum/date.py:388–392  ·  view source on GitHub ↗

Reset the date to the last day of the month.

(self)

Source from the content-addressed store, hash-verified

386 return self.set(self.year, self.month, 1)
387
388 def _end_of_month(self) -> Self:
389 """
390 Reset the date to the last day of the month.
391 """
392 return self.set(self.year, self.month, self.days_in_month)
393
394 def _start_of_year(self) -> Self:
395 """

Callers

nothing calls this directly

Calls 1

setMethod · 0.95

Tested by

no test coverage detected