发布时间:2019-08-10 10:32:06编辑:auto阅读(2579)
今天写工程碰见一个问题,需要将毫秒转换成日期
#!-*- coding:UTF-8 -*-
'''
Created on 2015-4-14
'''
import datetime
import time
timeStamp = 1427349630000
timeStamp /= 1000.0
print timeStamp
timearr = time.localtime(timeStamp)
otherStyleTime = time.strftime("%Y-%m-%d %H:%M:%S", timearr)
print otherStyleTime
上一篇: python中not的用法
下一篇: Python中字典的用法
51346
50808
41402
38201
32693
29585
28416
23301
23257
21589
1667°
2400°
2006°
1943°
2274°
1973°
2677°
4478°
4307°
3070°