[issue23517] datetime.utcfromtimestamp parses timestamps incorrectly
Tommaso Barbugli
report at bugs.python.org
Tue Feb 24 23:38:42 CET 2015
New submission from Tommaso Barbugli:
Hi,
I am porting a library from python 2.7 to 3.4 and I noticed that the behaviour of datetime.utcfromtimestamp is not consistent between the two versions.
For example on python 2.7.5
datetime.utcfromtimestamp(1424817268.274)
returns a datetime with 274000 microseconds
the same code in python 3.4 returns a datetime with 273999 microseconds.
----------
components: Library (Lib)
messages: 236552
nosy: tbarbugli
priority: normal
severity: normal
status: open
title: datetime.utcfromtimestamp parses timestamps incorrectly
type: behavior
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23517>
_______________________________________
More information about the Python-bugs-list
mailing list