Problem with strtotime()
| From: | Sachin Bennur\(DigitalRayInc\) | Date: | Wed, 04 Jun 2003 01:53:50 +0000 |
| Subject: | Problem with strtotime() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-150095@lists.php.net to get a copy of this message | ||
Hello,
I am not sure if this is a PHP problem. I am using strtotime() to convert
date string to timestamp. But this function fails with date prior to 1970.
The documentation however says that range is Fri, 13 Dec 1901 20:45:54 GMT
to Tue, 19 Jan 2038 03:14:07 GMT
To be specific strtotime("2003/05/04") works fine, but
strtotime("1966/05/04") returns -1
I face the same problem with mktime().
Is there any way to get a valid timestamp for dates before 1970 ??