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
Hey! As I've been digging deeper into the Pendulum library, I've discovered one interesting edge-case: Namely that for specific times, subtracting a negative timedelta is not the same as adding the positive one.
Thus, my_dt - my_negative_timedelta is not equal to my_dt + (-my_negative_timedelta).
As before, I took the liberty of throwing together what seemed a sensible patch: #419.
Hey! As I've been digging deeper into the Pendulum library, I've discovered one interesting edge-case: Namely that for specific times, subtracting a negative timedelta is not the same as adding the positive one.
Thus,
my_dt - my_negative_timedelta
is not equal tomy_dt + (-my_negative_timedelta)
.As before, I took the liberty of throwing together what seemed a sensible patch: #419.
Here's also a pyfiddle, to see this in action: https://pyfiddle.io/fiddle/6a20e200-bb3a-4af9-b336-a216f868487d/.
Thanks!
The text was updated successfully, but these errors were encountered: