Find all folds with the same value of isdst on both sides of the transition.
(self)
| 6609 | yield (EPOCH_NAIVE + timedelta(seconds=t)), shift |
| 6610 | |
| 6611 | def nondst_folds(self): |
| 6612 | """Find all folds with the same value of isdst on both sides of the transition.""" |
| 6613 | for (_, prev_ti), (t, ti) in pairs(zip(self.ut, self.ti)): |
| 6614 | shift = ti[0] - prev_ti[0] |
| 6615 | if shift < ZERO and ti[1] == prev_ti[1]: |
| 6616 | yield _utcfromtimestamp(datetime, t,), -shift, prev_ti[2], ti[2] |
| 6617 | |
| 6618 | @classmethod |
| 6619 | def print_all_nondst_folds(cls, same_abbr=False, start_year=1): |
no test coverage detected