UTC time conversion to internal time

sebastien s.keim at laposte.net
Wed Feb 13 13:34:32 CET 2002

"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:

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'

hope this will be helpfull

More information about the Python-list mailing list