MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / dst

Method dst

tools/python-3.11.9-amd64/Lib/datetime.py:1592–1605  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Callers 2

fromutcMethod · 0.45
dstMethod · 0.45

Calls 1

_check_utc_offsetFunction · 0.85

Tested by

no test coverage detected