UTC time conversion to internal time
sebastien
s.keim at laposte.net
Wed Feb 13 07:34:32 EST 2002
More information about the Python-list mailing list
Wed Feb 13 07:34:32 EST 2002
- Previous message (by thread): UTC time conversion to internal time
- Next message (by thread): UTC time conversion to internal time
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Colin Brown" <cbrown at met.co.nz> wrote in message news:<49ja8.17872$N31.902613 at ozemail.com.au>... > I wish to convert UTC times to internal time representation (the inverse of > time.gmtime). There does not seem to be any function to do this. Does anyone > have a clean solution please. in the calendar module: timegm(tuple) An unrelated but handy function that takes a time tuple such as returned by the gmtime() function in the time module, and returns the corresponding Unix timestamp value, assuming an epoch of 1970, and the POSIX encoding. In fact, time.gmtime() and timegm() are each others' inverse. hope this will be helpfull
- Previous message (by thread): UTC time conversion to internal time
- Next message (by thread): UTC time conversion to internal time
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list