New submission from Stefan <ste...@sriha.net>:
I noticed that there is a difference between intervals when computed from timedeltas vs timestamps. Is this a bug? Thanks! In [2]: import datetime as datet In [3]: d0 = datet.datetime(2016,3,27) In [4]: d1 = datet.datetime(2016,3,28) In [5]: (d1-d0).total_seconds()/3600 Out[5]: 24.0 In [6]: (d1.timestamp()-d0.timestamp())/3600 Out[6]: 23.0 ---------- messages: 403917 nosy: stef priority: normal severity: normal status: open title: possible bug in datetime.timestamp() type: behavior versions: Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45470> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com