python格林威治时间格式化

import time


struct_time = time.strptime('Sun Feb 16 11:56:25 +0800 2020', '%a %b %d %H:%M:%S %z %Y')
times = time.strftime('%Y-%m-%d %H:%M:%S', struct_time)
print(times) # 2020-02-16 11:56:25
原文地址:https://www.cnblogs.com/qiaoer1993/p/15525306.html