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

Method is_past

src/pendulum/date.py:140–144  ·  view source on GitHub ↗

Determines if the instance is in the past, ie. less than now.

(self)

Source from the content-addressed store, hash-verified

138 return self > self.today()
139
140 def is_past(self) -> bool:
141 """
142 Determines if the instance is in the past, ie. less than now.
143 """
144 return self < self.today()
145
146 def is_leap_year(self) -> bool:
147 """

Callers 2

test_is_pastFunction · 0.45
test_is_pastFunction · 0.45

Calls 1

todayMethod · 0.95

Tested by 2

test_is_pastFunction · 0.36
test_is_pastFunction · 0.36