mktime accepts a year of 100-110 as 2000-2010.

Bug#46732


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@270533 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Richard Quadling 2008-12-04 13:37:31 +00:00
parent 6709f22c4f
commit 68638642f5

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.25 $ -->
<!-- $Revision: 1.26 $ -->
<!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 -->
<refentry xml:id="function.mktime" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
@ -80,9 +80,9 @@
<term><parameter>year</parameter></term>
<listitem>
<para>
The number of the year, may be a two or four digit value,
with values between 0-69 mapping to 2000-2069 and 70-100 to
1970-2000. On systems where time_t is a 32bit signed integer, as
The number of the year, may be a two, three or four digit value,
with values between 0-69 mapping to 2000-2069 and 70-110 to
1970-2010. On systems where time_t is a 32bit signed integer, as
most common today, the valid range for <parameter>year</parameter>
is somewhere between 1901 and 2038. However, before PHP 5.1.0 this
range was limited from 1970 to 2038 on some systems (e.g. Windows).