[issue23517] datetime.utcfromtimestamp rounds results incorrectly

Alexander Belopolsky report at bugs.python.org
Fri Aug 28 19:17:30 CEST 2015


Alexander Belopolsky added the comment:

I wish we could use the same algorithm in datetime.utcfromtimestamp as we use in float to string conversion.  This may allow the following chain of conversions to round trip in most cases:

float literal -> float -> datetime -> seconds.microseconds string

----------
nosy: +belopolsky

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


More information about the Python-bugs-list mailing list