RE: [PHP-WIN] date() problem

From: Date: Wed, 14 Mar 2001 13:12:17 +0000
Subject: RE: [PHP-WIN] date() problem
Groups: php.windows 
Request: Send a blank email to php-windows+get-6018@lists.php.net to get a copy of this message
This one may be easy to explain, not so easy to fix... According to mktime documentation: '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).' Apparently, the windows implementation sticks to the range 1970~2037... :) I've tryed 1969 and got the same error, but with 1970 it worked... You will have to use some other date functions... -----Original Message----- From: TPG [mailto:bneguy@hotmail.com] Sent: quarta-feira, 14 de Março de 2001 12:46 To: php-windows@lists.php.net Subject: [PHP-WIN] date() problem Using Windows 2000 IIS php4 mysql, I get this error Warning: unexpected error in date() in C:\Websites\tepcart\catalog\account.php on line 112 when I <? echo date("M-d-y", mktime(0,0,0,1,21,1963)); ?> Any help gratefully recieved Thanks Regards Tony Ayling Brisbane Australia -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#6018) next »