MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / utcoffset

Method utcoffset

tests/test_code/py/pytz/reference.py:56–60  ·  view source on GitHub ↗
(self, dt)

Source from the content-addressed store, hash-verified

54class LocalTimezone(tzinfo):
55
56 def utcoffset(self, dt):
57 if self._isdst(dt):
58 return DSTOFFSET
59 else:
60 return STDOFFSET
61
62 def dst(self, dt):
63 if self._isdst(dt):

Callers

nothing calls this directly

Calls 1

_isdstMethod · 0.95

Tested by

no test coverage detected