>>> import time
>>>
>>> print time.time
<built-in function time>
>>>
>>>
>>> print time.time()
1516845123.6
>>>
>>> print time.ctime()
Thu Jan 25 09:52:13 2018
>>>
>>> print time.localtime()
time.struct_time(tm_year=2018, tm_mon=1, tm_mday=25, tm_hour=9, tm_min=52, tm_se
c=28, tm_wday=3, tm_yday=25, tm_isdst=0)
>>>>>>
>>> import time
>>>
>>> print time.time
<built-in function time>
>>>
>>>
>>> print time.time()
1516845123.6
>>>
>>> print time.ctime()
Thu Jan 25 09:52:13 2018
>>>
>>> print time.localtime()
time.struct_time(tm_year=2018, tm_mon=1, tm_mday=25, tm_hour=9, tm_min=52, tm_se
c=28, tm_wday=3, tm_yday=25, tm_isdst=0)
>>>
>>> time.strftime()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: strftime() takes at least 1 argument (0 given)
>>>
>>> time.strftime("%Y-%m-%d")
'2018-01-25'
>>>
>>> time.strftime("%Y-%m-%d %H:%M:%S",time.localtime())
'2018-01-25 16:01:50'