module time
Fredrik Lundh
fredrik at pythonware.com
Mon Feb 20 06:57:30 EST 2006
"Sergey" wrote:
> There is function
> mktime() -- convert local time tuple to seconds since Epoch
> in module time.
> But how about to convert *GMT time tuple* to seconds since Epoch?
>
> Is there such function?
>>> import calendar
>>> help(calendar.timegm)
Help on function timegm in module calendar:
timegm(tuple)
Unrelated but handy function to calculate Unix timestamp from GMT.
</F>
More information about the Python-list
mailing list