Find all folds with the same value of isdst on both sides of the transition.
(self)
| 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.""" |
| 6800 | for (_, prev_ti), (t, ti) in pairs(zip(self.ut, self.ti)): |
| 6801 | shift = ti[0] - prev_ti[0] |
| 6802 | if shift < ZERO and ti[1] == prev_ti[1]: |
| 6803 | yield _utcfromtimestamp(datetime, t,), -shift, prev_ti[2], ti[2] |
| 6804 | |
| 6805 | @classmethod |
| 6806 | def print_all_nondst_folds(cls, same_abbr=False, start_year=1): |
no test coverage detected