Table of Contents
TIME
GMT时间格式
GMT_FORMAT = '%a, %d %b %Y %H:%M:%S GMT'
获取某个时间的时间戳
import datetime import time string = "2018-03-31" date_time = datetime.datetime.strptime(string, '%Y-%m-%d') time_time = time.mktime …
GMT_FORMAT = '%a, %d %b %Y %H:%M:%S GMT'
import datetime import time string = "2018-03-31" date_time = datetime.datetime.strptime(string, '%Y-%m-%d') time_time = time.mktime …