[issue45470] possible bug in datetime.timestamp()

2021-10-14 Thread Stefan
Stefan added the comment: sorry it's resolved. it was a timezone issue: In [2]: d0 = datet.datetime(2016,3,27,tzinfo=datet.timezone.utc) In [3]: d1 = datet.datetime(2016,3,28,tzinfo=datet.timezone.utc) In [4]: (d1-d0).total_seconds()/3600 Out[4]: 24.0 In [5]: (d1.timestamp()-d0.timestamp())

[issue45470] possible bug in datetime.timestamp()

2021-10-14 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue45470] possible bug in datetime.timestamp()

2021-10-14 Thread Stefan
New submission from Stefan : 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()