time.gmtime
Harald Karner
harald.karner at a1.net
Fri Jan 25 05:58:06 EST 2008
asit wrote:
> we know that time.gmtime(secs) takes a parameter secs. what does this
> secs suggest ??What is it's significance ??
>>> import time
>>> help (time.gmtime)
Help on built-in function gmtime in module time:
gmtime(...)
gmtime([seconds]) -> (tm_year, tm_mon, tm_day, tm_hour, tm_min,
tm_sec, tm_wday, tm_yday, tm_isdst)
Convert seconds since the Epoch to a time tuple expressing UTC
(a.k.a. GMT). When 'seconds' is not passed in, convert the current time
instead.
>>> time.gmtime (0)
(1970, 1, 1, 0, 0, 0, 3, 1, 0)
>>>
More information about the Python-list
mailing list