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)
| 1691 | return offset |
| 1692 | |
| 1693 | def tzname(self): |
| 1694 | """Return the timezone name. |
| 1695 | |
| 1696 | Note that the name is 100% informational -- there's no requirement that |
| 1697 | it mean anything in particular. For example, "GMT", "UTC", "-500", |
| 1698 | "-5:00", "EDT", "US/Eastern", "America/New York" are all valid replies. |
| 1699 | """ |
| 1700 | if self._tzinfo is None: |
| 1701 | return None |
| 1702 | name = self._tzinfo.tzname(None) |
| 1703 | _check_tzname(name) |
| 1704 | return name |
| 1705 | |
| 1706 | def dst(self): |
| 1707 | """Return 0 if DST is not in effect, or the DST offset (as timedelta |
no test coverage detected