#时间戳和日期的转换
import time,datetime
print(datetime.datetime.today())
print(time.time())
print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(1494133686)))

结果