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)
| 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 |
nothing calls this directly
no test coverage detected