timeStamp = int(key['_source']['logoutime'])
timeStamp /= 1000.0
timearr = time.localtime(timeStamp)
otherStyleTime = time.strftime("%Y-%m-%d %H:%M:%S", timearr)
exit(otherStyleTime)
Python毫秒准换为秒
最新推荐文章于 2023-03-09 20:40:44 发布