[New-bugs-announce] [issue9070] Timestamps are rounded differently in py3k and trunk

Alexander Belopolsky report at bugs.python.org
Thu Jun 24 20:02:07 CEST 2010


New submission from Alexander Belopolsky <belopolsky at users.sourceforge.net>:

In the trunk:

>>> datetime.utcfromtimestamp(0.9999994)
datetime.datetime(1970, 1, 1, 0, 0, 1)

In py3k:

>>> datetime.utcfromtimestamp(0.9999994)
datetime.datetime(1970, 1, 1, 0, 0, 0, 999999)


See issue1478429 - it appears that rounding up was intentional, but I am adding 2.7 because py3k behavior seems to be more natural.

----------
assignee: belopolsky
components: Extension Modules
messages: 108536
nosy: belopolsky, georg.brandl, mark.dickinson, tim_one
priority: normal
severity: normal
stage: unit test needed
status: open
title: Timestamps are rounded differently in py3k and trunk
type: behavior
versions: Python 2.7, Python 3.2

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


More information about the New-bugs-announce mailing list