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