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)

发表回复