<!-- Hi there! Thank you for discovering and submitting an issue with our documentation. Before you submit this; let's make sure of a few things. Please make sure the following boxes are ticked if they are correct. If not, please try and fulfill these first. --> <!-- Checked checkbox should look like this: [x] --> - [x] I have searched the [issues](https://github.com/sdispater/pendulum/issues) of this repo and believe that this is not a duplicate. ## Issue <!-- Now feel free to write your issue, but please be descriptive! Thanks again 🙌 ❤️ --> There is a small typo in the doc for the pendulum object's subtract method. https://github.com/python-pendulum/pendulum/blob/master/docs/docs/addition_subtraction.md?plain=1#L67 ``` >>> dt = dt.subtract(minutes=1) '2012-01-28 01:01:00' >>> dt = dt.subtract(minutes=24) '2012-01-28 00:00:00' ``` The result of dt.subtract(minutes=24) is wrong, it should be 2012-01-28 00:37:00
Activity
ABolouk commentedon Dec 6, 2025
Can I work on this?
docs: fix incorrect example outputs in addition_subtraction.md
frankgoldfish commentedon Mar 17, 2026
I've opened a PR to fix this: #949
Three incorrect values were found:
add(hours=1)result showed'2012-02-25'instead of'2012-01-29'subtract(hours=1)result showed'2012-02-29'instead of'2012-01-29'(also impossible date in context)subtract(minutes=24)from01:01:00showed'00:00:00'instead of'00:37:00'fix: correct subtract(minutes=24) example in documentation (#950)