print(time.localtime(time.time()))
time.struct_time(tm_year=2018, tm_mon=10, tm_mday=23, tm_hour=19, tm_min=4, tm_sec=39, tm_wday=1, tm_yday=296, tm_isdst=0)
print(time.asctime(time.localtime(time.time())))
Tue Oct 23 19:06:37 2018
print(time.strftime(’%Y-%m-%d %H:%M:%S’, time.localtime()))
2018-10-23 19:09:38
print(time.strftime(’%H:%M:%S’, time.localtime()))
22:35:42