Date Difference Errors
| From: | Rob Quenzer | Date: | Thu, 06 Feb 2003 15:13:31 +0000 |
| Subject: | Date Difference Errors | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-134620@lists.php.net to get a copy of this message | ||
I have a function that I use to return the number of days between two dates. It worked fine on my
Mandrake 7.0 server running PHP 4. I am trying to run it on a RedHat 8.0 box with the same version
of PHP. On Mandrake, strtotime() and mktime() returned a negative number for dates prior to
1970-01-01. On the RH 8 box, they both return -1. Is there any work around to calculating date
differences for dates prior to 1970?
Rob