module time
Fredrik Lundh
fredrik at pythonware.com
Mon Feb 20 06:57:30 EST 2006
More information about the Python-list mailing list
Mon Feb 20 06:57:30 EST 2006
- Previous message (by thread): module time
- Next message (by thread): multiple email recipients
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"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>
- Previous message (by thread): module time
- Next message (by thread): multiple email recipients
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list