This package provides a DateTime data type, as known from Zope. Unless you need to communicate with Zope APIs, you're probably better off using Python's built-in datetime module.
Other
19
stars
25
forks
source link
fix round problem with addition for dates beyond 2038 #42
41 has been caused by an inconsistent computation of _second and _micros in _parse_args: the first rounded to the nearest microsecond, the second floored. The PR rounds in both cases.
In addition, the PR makes __add__ pass its computed microsecond value to the DateTime constructor rather than let it be recomputed in _parse_args.
Fixes #41.
41 has been caused by an inconsistent computation of
_second
and_micros
in_parse_args
: the first rounded to the nearest microsecond, the second floored. The PR rounds in both cases.In addition, the PR makes
__add__
pass its computed microsecond value to theDateTime
constructor rather than let it be recomputed in_parse_args
.