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)
| 1656 | return offset |
| 1657 | |
| 1658 | def tzname(self): |
| 1659 | """Return the timezone name. |
| 1660 | |
| 1661 | Note that the name is 100% informational -- there's no requirement that |
| 1662 | it mean anything in particular. For example, "GMT", "UTC", "-500", |
| 1663 | "-5:00", "EDT", "US/Eastern", "America/New York" are all valid replies. |
| 1664 | """ |
| 1665 | if self._tzinfo is None: |
| 1666 | return None |
| 1667 | name = self._tzinfo.tzname(None) |
| 1668 | _check_tzname(name) |
| 1669 | return name |
| 1670 | |
| 1671 | def dst(self): |
| 1672 | """Return 0 if DST is not in effect, or the DST offset (as timedelta |
no test coverage detected