mktime() like function to produce GMT?

Mark Nottingham mnot at pobox.com
Fri Apr 30 08:55:50 EDT 1999


I need a function to produce a Unix epoch time from a time tuple, a la
time.mktime(). Problem is, mktime() gives you the tuple in localtime, which
is dangerous if you're dealing with GMT times in the past (like in the
HTTP).

Is there a function that will make a GMT epoch time straight from a time
tuple?

Thanks,


Mark Nottingham, Melbourne Australia
mnot at pobox.com  http://www.pobox.com/~mnot/






More information about the Python-list mailing list