Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
age
Method · 0.95
is_future
Method · 0.95
is_past
Method · 0.95
is_anniversary
Method · 0.95
diff
Method · 0.95
diff_for_humans
Method · 0.95
average
Method · 0.95
now
Function · 0.80
_parse
Function · 0.80
utcnow
Method · 0.80
today
Method · 0.80
diff
Method · 0.80
Calls
2
local_timezone
Function · 0.90
astimezone
Method · 0.80
Tested by
15
test_instance_with_naive_datetime_defaults_to_utc
Function · 0.64
test_instance_with_aware_datetime
Function · 0.64
test_instance_with_aware_datetime_zoneinfo
Function · 0.64
test_week_starts_at
Function · 0.64
test_week_ends_at
Function · 0.64
diff_for_humans
Function · 0.64
diff_for_humans
Function · 0.64
diff_for_humans
Function · 0.64
diff_for_humans
Function · 0.64
diff_for_humans
Function · 0.64
diff_for_humans
Function · 0.64
diff_for_humans
Function · 0.64