|
Posted by Oli Filth on 04/21/06 19:23
Rithish said the following on 21/04/2006 16:44:
> Oli Filth wrote:
>> 0000-00-00 is not in the supported range of times in MySQL.
>>
>
> Ok. But why does strtotime() throw a timestamp for 30-11-1999?
Oops, sorry, misread your original code, I thought you were referring to
MySQL functionality.
0000-00-00 isn't a valid date string at all in PHP (i.e. you can't have
the zero-th day of the zero-th month). I guess anything that
strtotime() returns is purely arbitrary, although one would expect it to
return FALSE, as the manual implies.
--
Oli
Navigation:
[Reply to this message]
|