MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / tzname

Method tzname

tools/python-3.11.9-amd64/Lib/datetime.py:2070–2081  ·  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

2068 return offset
2069
2070 def tzname(self):
2071 """Return the timezone name.
2072
2073 Note that the name is 100% informational -- there's no requirement that
2074 it mean anything in particular. For example, "GMT", "UTC", "-500",
2075 "-5:00", "EDT", "US/Eastern", "America/New York" are all valid replies.
2076 """
2077 if self._tzinfo is None:
2078 return None
2079 name = self._tzinfo.tzname(self)
2080 _check_tzname(name)
2081 return name
2082
2083 def dst(self):
2084 """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