import time
timestamp = int(round(time.time() * 1000))
#10位unix时间戳
timestmp=int(time.time())
time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
import datetime
datetime.datetime.now().__format__("%Y-%m-%d %H:%M:%S") #格式化日期时间
datetime.datetime.utcnow()
ans_time = time.mktime(datetime.datetime.now().timetuple())
time = datetime.datetime.fromtimestamp(1439111214)