Monday, March 12, 2018

Time mktime() Method


 Time mktime() Method in Python 3

 The method mktime() is the inverse function of localtime(). Its argument is the struct_time or full 9-tuple and it returns a floating point number, for compatibility with time().If the input value cannot be represented as a valid time, either OverflowError or ValueError will be raised.

Syntax
time.mktime(t)

Parameters
t - This is the struct_time or full 9-tuple.
Return Value
This method returns a floating point number, for compatibility with time().

Example

output is :