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')
求教,谢谢~!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
timeNum/1000