[pypy-issue] [issue972] inconsistence with cpython (datetime?)

mikefc tracker at bugs.pypy.org
Mon Dec 26 04:43:12 CET 2011


mikefc <coolbutuseless at gmail.com> added the comment:

(just to show that using cpython directly produces the same result as ipython)

================ running directly on python2.7.2 (macports)
Python 2.7.2 (default, Nov 28 2011, 21:36:02) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from datetime import datetime
>>> t1 = 1324495440.299935
>>> t2 = 1324495440.500568
>>> datetime.utcfromtimestamp(t2) - datetime.fromtimestamp(t2)
datetime.timedelta(-1, 50400)
>>> datetime.utcfromtimestamp(t1) - datetime.fromtimestamp(t1)
datetime.timedelta(-1, 50400)

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue972>
________________________________________


More information about the pypy-issue mailing list