On Jul 24, 2008, at 11:30 AM, Jack Steadman wrote:
The upshot is that we can't actually rely on strtotime to determine
whether a string is a valid date/time.  The docs don't ever explicitly
say that the date strings themselves are checked for validity, but
returning false on "failure" implies to me that it will return false if
it can't get a *valid* date out of the string.

-62169966000 is a valid date. Perhaps instead of checking if strtotime returns a false for your error condition, check if it returns a value < 1.


--
Jordan CM Wambaugh
Lead Software Engineer
Forrent Media Solutions
[EMAIL PROTECTED]



Reply via email to