[New-bugs-announce] [issue41321] Calculate timestamp is wrong in datetime.datetime
dh4931
report at bugs.python.org
Fri Jul 17 05:20:57 EDT 2020
New submission from dh4931 <dh4931 at outlook.com>:
like so
datetime.datetime(1986, 5, 4, 7, 13, 22).timestamp() - datetime.datetime(1986, 5, 4, 0, 0, 0).timestamp()
the result is 22402.0, the result is wrong.
but on May 2nd
datetime.datetime(1986, 5, 2, 7, 13, 22).timestamp() - datetime.datetime(1986, 5, 2, 0, 0, 0).timestamp()
the result is 26002.0, the result is true
----------
components: Extension Modules
messages: 373805
nosy: dh4931
priority: normal
severity: normal
status: open
title: Calculate timestamp is wrong in datetime.datetime
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41321>
_______________________________________
More information about the New-bugs-announce
mailing list