Lines Matching defs:time
62 time = m.getdate(name)
64 which parses a Date-like field and returns a time-compatible tuple,
65 i.e. a tuple such as returned by time.localtime() or accepted by
66 time.mktime().
74 import time
159 # Skip unix From name time lines
359 compatible with time.mktime().
370 The first 9 elements make up a tuple compatible with time.mktime(),
371 and the 10th is the offset of the poster's time zone from GMT/UTC.
835 # The timezone table does not include the military time zones defined
837 # RFC822 gets the signs wrong, so we can't rely on any such time
851 """Convert a date string to a time tuple.
936 """Convert a time string to a time tuple."""
947 return time.mktime(data[:8] + (-1,))
949 t = time.mktime(data[:8] + (0,))
950 return t - data[9] - time.timezone
953 """Returns time format preferred for Internet standards.
963 timeval = time.time()
964 timeval = time.gmtime(timeval)
989 date = time.localtime(mktime_tz(date))
991 print 'ParsedDate:', time