Name

gmtime

Synopsis

gmtime([secs])

Accepts an instant expressed in seconds since the epoch and returns a nine-item time-tuple t with the UTC time (DST, the last item of t, is always 0). gmtime( ) without arguments is like gmtime(time( )) (i.e., it returns the nine-item time-tuple for the current time instant).

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.