def timeStamp(timeNum): timeStamp = int(timeNum) timeArray = time.localtime(timeStamp) otherStyleTime = time.strftime("%Y-%m-%d", timeArray) return otherStyleTime