def mktime_tz(data):
 if (data[9] is None):
  return time.mktime((data[:8] + ((-1),)))
 else:
  t = calendar.timegm(data)
  return (t - data[9])

def mktime_tz ( data ) : if ( data [ 9 ] is None ) : return time . mktime ( ( data [ : 8 ] + ( ( - 1 ) , ) ) ) else : t = calendar . timegm ( data ) return ( t - data [ 9 ] )
turn a 10-tuple as returned by parsedate_tz() into a utc timestamp .