import time
a = time.time()
print(a)
c = time.localtime(a)
print(c, type(c))
b = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(a))
print(b)
# 1631498187.2712145
# time.struct_time(tm_year=2021, tm_mon=9, tm_mday=13, tm_hour=9, tm_min=56, tm_sec=27, tm_wday=0, tm_yday=256, tm_isdst=0) <class 'time.struct_time'>
# 2021-09-13 09:56:27