Lines Matching refs:fold
127 fold = 0
131 tti, fold = self._tz_after.get_trans_info_fromutc(
136 fold = 0
149 # Detect fold
151 fold = shift.total_seconds() > timestamp - self._trans_utc[idx - 1]
153 if fold:
154 return dt.replace(fold=1)
167 lt = self._trans_local[dt.fold]
175 return self._tz_after.get_trans_info(ts, dt.year, dt.fold)
461 def _get_trans_info(self, ts, year, fold):
465 # With fold = 0, the period (denominated in local time) with the
467 # the fold; with fold = 1, it runs from the start of the gap to the
468 # beginning of the fold.
471 # the fold and whether DST is positive or negative (rare), and it
472 # turns out that this boils down to fold XOR is_positive.
473 if fold == (self.dst_diff >= 0):
505 fold = ambig_start <= ts < ambig_end
507 return (self.dst if isdst else self.std, fold)