From b028421a1f114bfd78fbe1df410182c44421ffda Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Wed, 1 Mar 2000 18:43:55 +0000 Subject: [PATCH] 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 --- functions/datetime.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/functions/datetime.xml b/functions/datetime.xml index 160d6752c8..04f88a686b 100644 --- a/functions/datetime.xml +++ b/functions/datetime.xml @@ -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) ); + year 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 year is somewhere + between 1902 and 2037). The last day of any given month can be expressed as the "0" day