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

Method tzname

tests/test_code/py/pytz/tzinfo.py:104–110  ·  view source on GitHub ↗

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

102 return _notime
103
104 def tzname(self, dt, is_dst=None):
105 '''See datetime.tzinfo.tzname
106
107 is_dst is ignored for StaticTzInfo, and exists only to
108 retain compatibility with DstTzInfo.
109 '''
110 return self._tzname
111
112 def localize(self, dt, is_dst=False):
113 '''Convert naive time to local time'''

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected