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

Method transitions

Lib/test/datetimetester.py:6793–6796  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6791
6792
6793 def transitions(self):
6794 for (_, prev_ti), (t, ti) in pairs(zip(self.ut, self.ti)):
6795 shift = ti[0] - prev_ti[0]
6796 yield (EPOCH_NAIVE + timedelta(seconds=t)), shift
6797
6798 def nondst_folds(self):
6799 """Find all folds with the same value of isdst on both sides of the transition."""

Callers 5

foldsMethod · 0.95
gapsMethod · 0.95
zerosMethod · 0.95
statsMethod · 0.45

Calls 2

timedeltaClass · 0.90
pairsFunction · 0.85

Tested by

no test coverage detected