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

Method dst

tests/test_code/py/pytz/tzinfo.py:96–102  ·  view source on GitHub ↗

See datetime.tzinfo.dst 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

94 return self._utcoffset
95
96 def dst(self, dt, is_dst=None):
97 '''See datetime.tzinfo.dst
98
99 is_dst is ignored for StaticTzInfo, and exists only to
100 retain compatibility with DstTzInfo.
101 '''
102 return _notime
103
104 def tzname(self, dt, is_dst=None):
105 '''See datetime.tzinfo.tzname

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected