PyDocs

Nav

Generic Operating System Services

gmtime

time

function
  • gmtime(seconds=None, /)
gmtime([seconds]) -> (tm_year, tm_mon, tm_mday, 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.

If the platform supports the tm_gmtoff and tm_zone, they are available as
attributes only.
Changed in 3.15
  • 3.15: Accepts any real number, not only integer or float.
0 Examples
No examples for time/gmtime.
See Also
No see-alsos for time/gmtime
0 Notes
No notes for gmtime