strtotime no longer accepting many dates?
| From: | David | Date: | Tue, 29 Oct 2002 04:47:41 +0000 |
| Subject: | strtotime no longer accepting many dates? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-121863@lists.php.net to get a copy of this message | ||
I recently upgraded my system, and all of a sudden strtotime won't handle a
date/time prior to the unix start microtime..
For example echo strtotime("1965-01-01"); returns a -1 (e.i. invalid
date/time format). According to the PHP4 docs:
Note: The valid range of a timestamp is typically from Fri, 13 Dec 1901
20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are the dates that
correspond to the minimum and maximum values for a 32-bit signed integer.)
But dates between 1901 and 1969ish don't work anymore... Is there another
date function to convert a date to a negitive unix timestamp??? Please help.
Thanks David