Pytz - 时区偏移量与公开信息不一致



在解决另一个问题时,我发现在pytz,时区"亚洲/雅加达"的UTC偏移量为7小时7米

为什么会这样?根据我所能找到的,亚洲/雅加达的偏移量应该只有7小时

import pytz
x = pytz.timezone('Asia/Jakarta')
x._utcoffset
# datetime.timedelta(0, 25620)

25620s=427分钟或7小时7分钟

我是不是错过了什么?

所以我刚刚看到了这个链接
http://pytz.sourceforge.net/#issues-限制

这让我找到
http://www.iana.org/time-zones.

下载数据并检查我在亚洲文件中发现了这些信息

>     # From Paul Eggert (2014-09-06):
>     # The 1876 Report of the Secretary of the [US] Navy, p 306 says that Batavia
>     # civil time was 7:07:12.5; round to even for Jakarta.

好吧。。。。。

最新更新