python 2.7
def timeStamp(timeNum):
timeStamp = float(timeNum)
timeArray = time.localtime(timeStamp)
otherStyleTime = time.strftime("%Y-%m-%d %H:%M:%S", timeArray)
print otherStyleTime
调用函数timeStamp(1457410893000)
的时候
提示错误:ValueError: (22, 'Invalid argument')
求教,谢谢~!
timeNum/1000