8.1. datetime — Basic date and time types — Python v2.7.3 documentation

8.1. datetime — Basic date and time types — Python v2.7.3 documentation,第1张

8.1. datetime — Basic date and time types — Python v2.7.3 documentation

Note that normalization of negative values may be surprising at first. For
example,

>>>
>>> from datetime import timedelta
>>> d = timedelta(microseconds=-1)
>>> (d.days, d.seconds, d.microseconds)
(-1, 86399, 999999)

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/zaji/2086023.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-07-22
下一篇 2022-07-22

发表评论

登录后才能评论

评论列表(0条)

保存