From ec3a7c43bc6fd320ed893dd0625f6d25e976b0b6 Mon Sep 17 00:00:00 2001 From: Justin Martin Date: Sun, 27 Nov 2011 03:58:58 +0000 Subject: [PATCH] Added note regarding the behaviour of relative months. Closes bug #60353. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@320010 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/datetime/formats.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reference/datetime/formats.xml b/reference/datetime/formats.xml index 2989e0a90a..45923971f1 100644 --- a/reference/datetime/formats.xml +++ b/reference/datetime/formats.xml @@ -890,6 +890,14 @@ + + + Relative month values are calculated based on the length of months that + they pass through. An example would be "+2 month 2011-11-30", which would + produce "2012-01-30". This is due to November being 30 days in length, and + December being 31 days in length, producing a total of 61 days. + +