[issue23517] datetime.utcfromtimestamp rounds results incorrectly

Tim Peters report at bugs.python.org
Sat Sep 5 18:46:37 CEST 2015


Tim Peters added the comment:

Victor, sorry if I muddied the waters here:  Alex & I do agree nearest/even must be used.  It's documented for timedelta already, and the seconds-from-the-epoch invariant Alex showed is at least as important to preserve as round-tripping.

Alex, agreed about the overall mean in the example, but expect that continuing to exchange contrived examples isn't really a major life goal for either of us ;-)  Thanks for playing along.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23517>
_______________________________________


More information about the Python-bugs-list mailing list