You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issues of this repo and believe that this is not a duplicate.
OS version and name: OS X 15.2 Sequoia
Pendulum version: 3.0.0 (and also installing from git)
Python version: 3.10.14 (PyPy 7.3.17)
Issue
There is an issue with durations of full days with the latest Pendulum version and PyPy.
Here is a reproducer in ipython:
>ipythonPython3.10.14 (39dc8d3c85a7, Aug272024, 20:40:24)
Type'copyright', 'credits'or'license'formoreinformationIPython8.31.0--AnenhancedInteractivePython. Type'?'forhelp.
In [1]: frompendulumimportdurationIn [2]: duration(days=1)
Out[2]: Duration()
In [3]: duration(hours=23)
Out[3]: Duration(hours=23)
In [4]: duration(minutes=24*60)
Out[4]: Duration()
In [5]: duration(seconds=24*60*60)
Out[5]: Duration()
In [6]: duration(days=1).total_seconds()
Out[6]: 0.0In [7]: duration(days=2).total_seconds()
Out[7]: 0.0In [8]: duration(days=2, minutes=1).total_seconds()
Out[8]: 60.0# there is no problem with the native timedelta of pypyIn [8]: fromdatetimeimporttimedeltaIn [9]: timedelta(days=1).total_seconds()
Out[9]: 86400.0
The text was updated successfully, but these errors were encountered:
Issue
There is an issue with durations of full days with the latest Pendulum version and PyPy.
Here is a reproducer in ipython:
The text was updated successfully, but these errors were encountered: