added a description in datetime.xml, funktion mktime() explaining

the valid ranges for parameter 'year' (see BUG id #3084)


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@20789 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hartmut Holzgraefe 2000-03-01 18:43:55 +00:00
parent 324f6e6acd
commit b028421a1f

View file

@ -350,8 +350,14 @@ echo gmstrftime ("%b %d %Y %H:%M:%S",mktime(20,0,0,12,31,98))."\n";
echo date( "M-d-Y", mktime(0,0,0,12,32,1997) );
echo date( "M-d-Y", mktime(0,0,0,13,1,1997) );
echo date( "M-d-Y", mktime(0,0,0,1,1,1998) );
echo date( "M-d-Y", mktime(0,0,0,1,1,98) );
</programlisting>
</example>
<parameter>year</parameter> may be a two or four digit value, with
values between 0-69 mapping to 2000-2069 and 70-99 to 1970-1999
(on systems where time_t is a 32bit signed integer, as most common
today, the valid range for <parameter>year</parameter> is somewhere
between 1902 and 2037).
</para>
<para>
The last day of any given month can be expressed as the "0" day