Name
mktime
Synopsis
mktime(tupletime
)
Accepts an instant expressed as a nine-item tuple in local time and
returns a floating-point value with the instant expressed in seconds
since the epoch. DST, the last item in
tupletime
, is meaningful: set it to
0
to get solar time, to 1
to
get Daylight Saving Time, or to -1
to let
mktime
compute whether DST is in effect or not at
the given 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.