From b156b56f52bf8bd4db1c5088cbe9b3673caaa50a Mon Sep 17 00:00:00 2001 From: Matt Li Date: Fri, 24 Feb 2006 10:30:42 +0000 Subject: [PATCH] Document the fact that <4.4 'next' is +2. Update Date Input Formats URL git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@207864 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/datetime/functions/strtotime.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/reference/datetime/functions/strtotime.xml b/reference/datetime/functions/strtotime.xml index f4bfc164f7..9bf4a7626a 100644 --- a/reference/datetime/functions/strtotime.xml +++ b/reference/datetime/functions/strtotime.xml @@ -1,5 +1,5 @@ - + @@ -144,6 +144,13 @@ if (($timestamp = strtotime($str)) === false) { versions where it is correctly computed from current time. + + + In PHP versions prior to 4.4, "next" is incorrectly + computed as +2. A typical solution to this is to use + "+1". + + The valid range of a timestamp is typically from Fri, 13 Dec