MCPcopy Index your code
hub / github.com/RustPython/RustPython / tzname

Method tzname

Lib/_pydatetime.py:2189–2200  ·  view source on GitHub ↗

Return the timezone name. Note that the name is 100% informational -- there's no requirement that it mean anything in particular. For example, "GMT", "UTC", "-500", "-5:00", "EDT", "US/Eastern", "America/New York" are all valid replies.

(self)

Source from the content-addressed store, hash-verified

2187 return offset
2188
2189 def tzname(self):
2190 """Return the timezone name.
2191
2192 Note that the name is 100% informational -- there's no requirement that
2193 it mean anything in particular. For example, "GMT", "UTC", "-500",
2194 "-5:00", "EDT", "US/Eastern", "America/New York" are all valid replies.
2195 """
2196 if self._tzinfo is None:
2197 return None
2198 name = self._tzinfo.tzname(self)
2199 _check_tzname(name)
2200 return name
2201
2202 def dst(self):
2203 """Return 0 if DST is not in effect, or the DST offset (as timedelta

Callers

nothing calls this directly

Calls 2

_check_tznameFunction · 0.85
tznameMethod · 0.45

Tested by

no test coverage detected