#44593 [Opn->Bgs]: strtotime conflicting definitions of 2 digit years
| From: | vrana@php.net | Date: | Wed, 05 Nov 2008 16:34:51 +0000 |
| Subject: | #44593 [Opn->Bgs]: strtotime conflicting definitions of 2 digit years | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-1372@lists.php.net to get a copy of this message | ||
ID: 44593
Updated by: vrana@php.net
Reported By: bernhard at bksys dot at
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: any
PHP Version: Irrelevant
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
We don't use GNU anymore, it is being documented by #36474.
Previous Comments:
------------------------------------------------------------------------
[2008-04-01 13:42:44] bernhard at bksys dot at
Description:
------------
http://www.php.net/manual/en/function.strtotime.php
says:
"Note: If the number of the year is specified in a two digit format,
the values between 00-69 are mapped to 2000-2069 and 70-99 to
1970-1999."
This makes 69 2069. 0035 should be the ancient year 35 AD.
"time
The string to parse, according to the GNU » Date Input Formats
syntax."
http://www.gnu.org/software/tar/manual/html_node/tar_115.html
says:
-------------------------
72-9-24 # Assume 19xx for 69 through 99,
# 20xx for 00 through 68.
If year is 68 or smaller, then 2000 is added to it; otherwise, if year
is less than 100, then 1900 is added to it.
-------------------------
This makes 69 1969. 0035 is less than 69 so should be converted to
2035.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44593&edit=1