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

Method utcoffset

tests/test_code/py/pytz/tzinfo.py:88–94  ·  view source on GitHub ↗

See datetime.tzinfo.utcoffset is_dst is ignored for StaticTzInfo, and exists only to retain compatibility with DstTzInfo.

(self, dt, is_dst=None)

Source from the content-addressed store, hash-verified

86 return (dt + self._utcoffset).replace(tzinfo=self)
87
88 def utcoffset(self, dt, is_dst=None):
89 '''See datetime.tzinfo.utcoffset
90
91 is_dst is ignored for StaticTzInfo, and exists only to
92 retain compatibility with DstTzInfo.
93 '''
94 return self._utcoffset
95
96 def dst(self, dt, is_dst=None):
97 '''See datetime.tzinfo.dst

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected