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)
| 1577 | return offset |
| 1578 | |
| 1579 | def tzname(self): |
| 1580 | """Return the timezone name. |
| 1581 | |
| 1582 | Note that the name is 100% informational -- there's no requirement that |
| 1583 | it mean anything in particular. For example, "GMT", "UTC", "-500", |
| 1584 | "-5:00", "EDT", "US/Eastern", "America/New York" are all valid replies. |
| 1585 | """ |
| 1586 | if self._tzinfo is None: |
| 1587 | return None |
| 1588 | name = self._tzinfo.tzname(None) |
| 1589 | _check_tzname(name) |
| 1590 | return name |
| 1591 | |
| 1592 | def dst(self): |
| 1593 | """Return 0 if DST is not in effect, or the DST offset (as timedelta |
no test coverage detected