Python‎ > ‎time‎ > ‎

time.mktime

http://www.adilwaseem.com/

Return 
Convert a time tuple in local time to seconds since the Epoch.

Syntax
mktime(tuple) -> floating point number

Parameters
9 tuple values required.

Import module
Importing module is required in the Shell window and the Editor window.

Example
The method return with the following return.
 >>>import time
>>> x=(2015, 1, 30, 22, 7, 7, 2, 12, 0)
>>> time.mktime(x)
1422673627.0
>>>

Comments