Python‎ > ‎time‎ > ‎

time.localtime

http://www.adilwaseem.com/

Return
Convert seconds since the Epoch to a time tuple expressing local time. When 'seconds' is not passed in, convert the current time instead.

Syntax
time.localtime()

Parameters
N/A

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

Example
Return with the local time in tuple.
>>> import time
>>> time.localtime()
time.struct_time(tm_year=2015, tm_mon=1, tm_mday=30, tm_hour=21, tm_min=48, tm_sec=38, tm_wday=4, tm_yday=30, tm_isdst=0)
>>>

Comments