| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The hours and minutes example outputs in the addition/subtraction documentation contained three incorrect values: - add(hours=1) after add(hours=24): '2012-02-25' → '2012-01-29' - subtract(hours=1): '2012-02-29' → '2012-01-29' (also Feb 29 doesn't exist in 2012, it's a leap year but still wrong context) - subtract(minutes=24) after starting at 01:01: '00:00:00' → '00:37:00' Fixes python-pendulum#925
| Back | FazBrowse Home | New Git URL |
Summary
Three example output values in the addition/subtraction documentation are incorrect.
Errors fixed
The example simulates a chain of operations starting from pendulum.datetime(2012, 1, 28):
Verified with plain Python datetime arithmetic.
Closes #925