【发布时间】:2019-04-07 13:45:12
【问题描述】:
我将如何准确地将datetime.utcnow() 返回的时间戳偏移任意时间,例如一天?
例如:
now = datetime.utcnow().isoformat() + 'Z'
我需要一天以上的偏移量。当我的脚本进入夏令时转换时有一个小问题,但我不需要看过去,但是因为它今天加载它也死了,因为 python 脚本错误在今天的日期工作。
【问题讨论】:
标签: python python-3.x datetime utc