Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dateutil/dateutil
/ test_time_fixed_offset
Function
test_time_fixed_offset
tests/test_tzfile.py:723–728 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
721
722
723
def
test_time_fixed_offset():
724
utc = tz.gettz(
"UTC"
)
725
assert isinstance(utc, tz.tzfile)
726
727
t = time(11, 1, tzinfo=utc)
728
assert t.utcoffset() == ZERO
729
730
731
def
test_time_varying_offset():
Callers
nothing calls this directly
Calls
2
gettz
Method · 0.45
utcoffset
Method · 0.45
Tested by
no test coverage detected