Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/python-pendulum/pendulum
/ test_instance_with_aware_datetime
Function
test_instance_with_aware_datetime
tests/test_main.py:23–25 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
21
22
23
def
test_instance_with_aware_datetime() -> None:
24
now = pendulum.instance(datetime.now(timezone(
"Europe/Paris"
)))
25
assert now.timezone_name ==
"Europe/Paris"
26
27
28
def
test_instance_with_aware_datetime_zoneinfo() -> None:
Callers
nothing calls this directly
Calls
3
timezone
Function · 0.90
now
Method · 0.80
instance
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…