MCPcopy Index your code
hub / github.com/python/cpython / _isdst

Method _isdst

Doc/includes/tzinfo_examples.py:49–55  ·  view source on GitHub ↗
(self, when)

Source from the content-addressed store, hash-verified

47 return time.tzname[self._isdst(when)]
48
49 def _isdst(self, when):
50 tt = (when.year, when.month, when.day,
51 when.hour, when.minute, when.second,
52 when.weekday(), 0, 0)
53 stamp = time.mktime(tt)
54 tt = time.localtime(stamp)
55 return tt.tm_isdst > 0
56
57
58Local = LocalTimezone()

Callers 3

utcoffsetMethod · 0.95
dstMethod · 0.95
tznameMethod · 0.95

Calls 1

weekdayMethod · 0.45

Tested by

no test coverage detected