Inconsistent timestamp to datetime.datetime conversion between Python 2 & 3

Description

It looks like datetime.datetime.utcfromtimestamp is yielding different results for python3:

In [4]: datetime.utcfromtimestamp(1420479023.001)
Out[4]: datetime.datetime(2015, 1, 5, 17, 30, 23, 1000)

In [2]: datetime.utcfromtimestamp(1420479023.001)
Out[2]: datetime.datetime(2015, 1, 5, 17, 30, 23, 999)

Problem reported on the mailing list: https://groups.google.com/a/lists.datastax.com/d/msg/python-driver-user/lCm_a9aaAbI/2Ad6GRm8msoJ

Environment

None

Pull Requests

None

Activity

Show:
Adam Holmberg
March 18, 2015, 8:52 PM

Ended up introducing a workaround in https://datastax-oss.atlassian.net/browse/PYTHON-230

Duplicate

Assignee

Unassigned

Reporter

Alex Popescu

Fix versions

Labels

None

Reproduced in

None

PM Priority

None

External issue ID

None

Doc Impact

None

Reviewer

None

Size

None

Pull Request

None

Affects versions

Priority

Major
Configure