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

Method _end_of_century

src/pendulum/date.py:430–436  ·  view source on GitHub ↗

Reset the date to the last day of the century.

(self)

Source from the content-addressed store, hash-verified

428 return self.set(year, 1, 1)
429
430 def _end_of_century(self) -> Self:
431 """
432 Reset the date to the last day of the century.
433 """
434 year = self.year - 1 - (self.year - 1) % YEARS_PER_CENTURY + YEARS_PER_CENTURY
435
436 return self.set(year, 12, 31)
437
438 def _start_of_week(self) -> Self:
439 """

Callers

nothing calls this directly

Calls 1

setMethod · 0.95

Tested by

no test coverage detected