Re: Date Difference Errors
| From: | Jason Wong | Date: | Thu, 06 Feb 2003 16:33:55 +0000 |
| Subject: | Re: Date Difference Errors | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134641@lists.php.net to get a copy of this message | ||
On Thursday 06 February 2003 23:13, Rob Quenzer wrote:
> 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?
Have a look at the functions in manual > 'Calendar functions'.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Victory uber allies!
*/