Return 0 if DST is not in effect, or the DST offset (as timedelta positive eastward) if DST is in effect. This is purely informational; the DST offset has already been added to the UTC offset returned by utcoffset() if applicable, so there's no need to consult d
(self)
| 1590 | return name |
| 1591 | |
| 1592 | def dst(self): |
| 1593 | """Return 0 if DST is not in effect, or the DST offset (as timedelta |
| 1594 | positive eastward) if DST is in effect. |
| 1595 | |
| 1596 | This is purely informational; the DST offset has already been added to |
| 1597 | the UTC offset returned by utcoffset() if applicable, so there's no |
| 1598 | need to consult dst() unless you're interested in displaying the DST |
| 1599 | info. |
| 1600 | """ |
| 1601 | if self._tzinfo is None: |
| 1602 | return None |
| 1603 | offset = self._tzinfo.dst(None) |
| 1604 | _check_utc_offset("dst", offset) |
| 1605 | return offset |
| 1606 | |
| 1607 | def replace(self, hour=None, minute=None, second=None, microsecond=None, |
| 1608 | tzinfo=True, *, fold=None): |
no test coverage detected