Name
localtime
Synopsis
localtime([secs
])
Accepts an instant expressed in seconds since the epoch and returns a
nine-item tuple t
with the local time
(DST, the last item of t
, is set to
0
or 1
, depending on whether
DST applies to instant secs
according to
local rules). localtime( )
without arguments is
like localtime(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.