Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dateutil/dateutil
/ tzoffset
Method
tzoffset
src/dateutil/parser/_parser.py:354–358 ·
view source on GitHub ↗
(self, name)
Source
from the content-addressed store, hash-verified
352
return
name.lower() in self._utczone
353
354
def
tzoffset(self, name):
355
if
name in self._utczone:
356
return
0
357
358
return
self.TZOFFSET.get(name)
359
360
def
convertyear(self, year, century_specified=False):
361
""
"
Callers
15
_parse
Method · 0.80
_build_tzinfo
Method · 0.80
_build_tzaware
Method · 0.80
_parse_tzstr
Method · 0.80
test_valid_tzinfo_int_input
Method · 0.80
_mkoffset
Function · 0.80
testInequality
Method · 0.80
testTimedeltaOffset
Method · 0.80
testTzNameNone
Method · 0.80
testTimeOnlyOffset
Method · 0.80
testTzOffsetRepr
Method · 0.80
testEquality
Method · 0.80
Calls
1
get
Method · 0.45
Tested by
15
test_valid_tzinfo_int_input
Method · 0.64
_mkoffset
Function · 0.64
testInequality
Method · 0.64
testTimedeltaOffset
Method · 0.64
testTzNameNone
Method · 0.64
testTimeOnlyOffset
Method · 0.64
testTzOffsetRepr
Method · 0.64
testEquality
Method · 0.64
testUTCEquality
Method · 0.64
testInequalityInvalid
Method · 0.64
testInequalityUnsupported
Method · 0.64
testAmbiguity
Method · 0.64