GMT_FORMAT = '%a %b %d %H:%M:%S +0800 %Y'#可以
time_tuple = time.strptime(item['created_at'],GMT_FORMAT)#item['created_at']为需要转的格林时间
#time.strptime,为转化为时间数组,分割成年月日
最后用time.strftime函数,将时间数组转化为,中国标准时间:
date = time.strftime(’%Y-%m-%d %H:%M:%S’, a)
为以下的格式