Demo:
import time
timeStamp = 1381419600
timeArray = time.localtime(timeStamp)
otherStyleTime = time.strftime("%Y-%m-%d %H:%M:%S", timeArray)
otherStyletime == "2013-10-10 23:40:00"
but my timestamp is 1399266718207, have valueerror , timestamp out of range for platform time_t. please tell me what can i do? change the size of date?