|
1
4
拥有一个非天真的datetime对象,您只应该调用 astimezone 具有所需时区的方法
你的评论是对的,utc时间应该落后,所以尽管我认为另一个解决方案,但这个呢
|
![]() |
2
1
Your comment suggests 你需要反转utc偏移的符号。
Python 2.6在stdlib中没有固定的偏移时区。你可以使用
the example implementation from the
然后,要解析时间字符串,可以使用
|
![]() |
curlyreggie · 将基于GMT的时间转换为UTC python 11 年前 |
![]() |
ABlankenship · “标准”时区缩写是什么? 12 年前 |
![]() |
AndroidRaji · 如何在php中显示基于国家的GMT时间 12 年前 |