Lines Matching full:hour
4 HOUR = timedelta(hours=1) variable
50 dt.hour, dt.minute, dt.second,
142 if start + HOUR <= dt < end - HOUR:
144 return HOUR
145 if end - HOUR <= dt < end:
146 # Fold (an ambiguous hour): use dt.fold to disambiguate.
147 return ZERO if dt.fold else HOUR
148 if start <= dt < start + HOUR:
149 # Gap (a non-existent hour): reverse the fold rule.
150 return HOUR if dt.fold else ZERO
160 dst_time = std_time + HOUR
161 if end <= dst_time < end + HOUR:
162 # Repeated hour
167 if start <= std_time < end - HOUR: