gpt4 book ai didi

python - 为什么我在 python 中看到时区异常

转载 作者:行者123 更新时间:2023-11-28 19:28:46 25 4
gpt4 key购买 nike

<分区>

使用 Python3,我执行以下操作:

from datetime import datetime
from pytz import timezone
df = datetime(2018, 6, 1, hour=0, minute=0, tzinfo=timezone('US/Eastern'))
print(df)
2018-06-01 00:00:00-04:56

那么,为什么日期时间设置为 -4:56 的偏移量?不应该是-5:00吗?为什么要休息 4 分钟?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com