时间模块
import time
print(time.strftime("%Y-%m-%d",time.localtime(1500000000))) # 时间戳转字符串时间
print(time.strptime("2017-03-16","%Y-%m-%d")) # 结构化时间
print(time.mktime(time.strptime("2017-03-16","%Y-%m-%d"))) #字符串时间转时间戳
print(time.mktime(time.strptime("2017-03-16 19:58:2","%Y-%m-%d %H:%M:%S")))
浙公网安备 33010602011771号