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

Method is_long_year

src/pendulum/datetime.py:523–532  ·  view source on GitHub ↗

Determines if the instance is a long year See link `https://en.wikipedia.org/wiki/ISO_8601#Week_dates`_

(self)

Source from the content-addressed store, hash-verified

521 return self < self.now(self.timezone)
522
523 def is_long_year(self) -> bool:
524 """
525 Determines if the instance is a long year
526
527 See link `https://en.wikipedia.org/wiki/ISO_8601#Week_dates`_
528 """
529 return (
530 DateTime.create(self.year, 12, 28, 0, 0, 0, tz=self.tz).isocalendar()[1]
531 == 53
532 )
533
534 def is_same_day(self, dt: datetime.datetime) -> bool: # type: ignore[override]
535 """

Callers

nothing calls this directly

Calls 1

createMethod · 0.80

Tested by

no test coverage detected