import time
updateTime = 1615527846
local_time = time.localtime(updateTime)
account_time = time.strftime("%Y-%m-%d %H:%M:%S", local_time)
print(account_time)
秒数转化为时间格式
最新推荐文章于 2024-04-03 16:24:03 发布
import time
updateTime = 1615527846
local_time = time.localtime(updateTime)
account_time = time.strftime("%Y-%m-%d %H:%M:%S", local_time)
print(account_time)