Subject: | Adding a duration that contains both months and days |
It seems that when adding a DateTime::Duration object that contains "3 months, 35 days", the
days are added first, then the months. I believe that this is counterintuitive.
For example, starting from the 28th July 2011, if you add 3 months, then add 35 days, you get
the 2nd December. If you add it the other way around, you get the 1st December.
If you have a duration object with "3 months, 35 days" and add it to that date, you also get the
1st December.
See https://gist.github.com/1111335