Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dateutil/dateutil
/ test_time_varying_offset
Function
test_time_varying_offset
tests/test_tzfile.py:731–737 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
729
730
731
def
test_time_varying_offset():
732
tzi = tz.gettz(
"America/New_York"
)
733
t = time(11, 1, tzinfo=tzi)
734
735
assert t.utcoffset() is None
736
assert t.tzname() is None
737
assert t.dst() is None
738
739
740
@functools.cache
Callers
nothing calls this directly
Calls
4
gettz
Method · 0.45
utcoffset
Method · 0.45
tzname
Method · 0.45
dst
Method · 0.45
Tested by
no test coverage detected