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

Method today

src/pendulum/date.py:730–733  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

728
729 @classmethod
730 def today(cls) -> Self:
731 dt = date.today()
732
733 return cls(dt.year, dt.month, dt.day)
734
735 @classmethod
736 def fromtimestamp(cls, t: float) -> Self:

Callers 15

is_futureMethod · 0.95
is_pastMethod · 0.95
diffMethod · 0.95
diff_for_humansMethod · 0.95
is_anniversaryMethod · 0.45
averageMethod · 0.45
test_todayFunction · 0.45
todayFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_todayFunction · 0.36
todayFunction · 0.36
test_is_anniversaryFunction · 0.36
test_is_birthdayFunction · 0.36
test_todayFunction · 0.36
test_start_of_dayFunction · 0.36
test_end_of_dayFunction · 0.36