svn: /phpdoc/en/trunk/reference/datetime/ formats.xml
| From: | Justin Martin | Date: | Sun, 27 Nov 2011 03:58:58 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/datetime/ formats.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9086@lists.php.net to get a copy of this message | ||
frozenfire Sun, 27 Nov 2011 03:58:58 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=320010
Log:
Added note regarding the behaviour of relative months. Closes bug #60353.
Bug: https://bugs.php.net/60353 (Open) Date-related
"Relative Formats" doesn't indicate month behaviour
Changed paths:
U phpdoc/en/trunk/reference/datetime/formats.xml
Modified: phpdoc/en/trunk/reference/datetime/formats.xml
===================================================================
--- phpdoc/en/trunk/reference/datetime/formats.xml 2011-11-27 03:45:48 UTC (rev 320009)
+++ phpdoc/en/trunk/reference/datetime/formats.xml 2011-11-27 03:58:58 UTC (rev 320010)
@@ -890,6 +890,14 @@
</listitem>
</orderedlist>
</note>
+ <note>
+ <para>
+ 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.
+ </para>
+ </note>
</section>
<!--}}}-->