Lines Matching refs:yr
142 def _str2time(day, mon, yr, hr, min, sec, tz): argument
143 yr = int(yr)
144 if yr > datetime.MAXYEAR:
172 if yr < 1000:
176 tmp = yr
177 yr = yr + cur_yr - m
180 if m > 0: yr = yr + 100
181 else: yr = yr - 100
184 t = _timegm((yr, mon, day, hr, min, sec, tz))
265 day, mon, yr, hr, min, sec, tz = [None]*7
270 day, mon, yr, hr, min, sec, tz = m.groups()
274 return _str2time(day, mon, yr, hr, min, sec, tz)
308 day, mon, yr, hr, min, sec, tz = [None]*7
315 yr, mon, day, hr, min, sec, tz, _ = m.groups()
319 return _str2time(day, mon, yr, hr, min, sec, tz)