You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
651 B

From: mnot at pobox.com (Mark Nottingham)
Date: Fri, 30 Apr 1999 12:55:50 GMT
Subject: mktime() like function to produce GMT?
Message-ID: <00be01be9308$c649cf60$0301a8c0@cbd.net.au>
X-UID: 225
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/