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:[EMAIL PROTECTED]]
Sent: quarta-feira, 14 de Março de 2001 12:46
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to