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

Method now

src/pendulum/datetime.py:149–149  ·  view source on GitHub ↗
(cls, tz: datetime.tzinfo | None = None)

Source from the content-addressed store, hash-verified

147 @overload
148 @classmethod
149 def now(cls, tz: datetime.tzinfo | None = None) -> Self: ...
150
151 @overload
152 @classmethod

Callers 15

ageMethod · 0.95
is_futureMethod · 0.95
is_pastMethod · 0.95
is_anniversaryMethod · 0.95
diffMethod · 0.95
diff_for_humansMethod · 0.95
averageMethod · 0.95
nowFunction · 0.80
_parseFunction · 0.80
utcnowMethod · 0.80
todayMethod · 0.80
diffMethod · 0.80

Calls 2

local_timezoneFunction · 0.90
astimezoneMethod · 0.80

Tested by 15

test_week_starts_atFunction · 0.64
test_week_ends_atFunction · 0.64
diff_for_humansFunction · 0.64
diff_for_humansFunction · 0.64
diff_for_humansFunction · 0.64
diff_for_humansFunction · 0.64
diff_for_humansFunction · 0.64
diff_for_humansFunction · 0.64
diff_for_humansFunction · 0.64