code: def mktime_tz(data):
      
      if data[9] is None:
          # No zone info, so localtime is better assumption than GMT
          return time.mktime(data[:8] + (-1,))
      else:
          t = time.mktime(data[:8] + (0,))
          return t - data[9] - time.timezone
docs: Turn a 10-tuple as returned by parsedate_tz() into a UTC timestamp.