将时间戳转换成字符串时间

 

import time
current_time = 1567739948.6674833

local_time = time.localtime(current_time)
fmttime=time.strftime('%Y-%m-%d %H:%M:%S',local_time)

print(fmttime)

 

   

posted on 2019-09-06 11:21  王大拿  阅读(4)  评论(0)    收藏  举报

导航