MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / _isdst

Method _isdst

tests/test_code/py/pytz/reference.py:71–77  ·  view source on GitHub ↗
(self, dt)

Source from the content-addressed store, hash-verified

69 return _time.tzname[self._isdst(dt)]
70
71 def _isdst(self, dt):
72 tt = (dt.year, dt.month, dt.day,
73 dt.hour, dt.minute, dt.second,
74 dt.weekday(), 0, -1)
75 stamp = _time.mktime(tt)
76 tt = _time.localtime(stamp)
77 return tt.tm_isdst > 0
78
79Local = LocalTimezone()
80

Callers 3

utcoffsetMethod · 0.95
dstMethod · 0.95
tznameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected