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

Method _end_of_decade

src/pendulum/date.py:414–420  ·  view source on GitHub ↗

Reset the date to the last day of the decade.

(self)

Source from the content-addressed store, hash-verified

412 return self.set(year, 1, 1)
413
414 def _end_of_decade(self) -> Self:
415 """
416 Reset the date to the last day of the decade.
417 """
418 year = self.year - self.year % YEARS_PER_DECADE + YEARS_PER_DECADE - 1
419
420 return self.set(year, 12, 31)
421
422 def _start_of_century(self) -> Self:
423 """

Callers

nothing calls this directly

Calls 1

setMethod · 0.95

Tested by

no test coverage detected