Re: date calculation
| From: | Kevin Waterson | Date: | Sun, 16 Feb 2003 12:43:36 +0000 |
| Subject: | Re: date calculation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135742@lists.php.net to get a copy of this message | ||
This one time, at band camp,
"qt" <web_tur@yahoo.com> wrote:
> Dear Sirs,
>
> How can I add or subtract two date easily. Is therea any lib or function
> about this. I can not find any easy way in the manual
if the dates are timestamps, simply
$new = $timestamp2 - $timestamp1;
cheers
Kevin
--
______
(_____ \
_____) ) ____ ____ ____ ____
| ____/ / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \____) \_||_| \____) \____)
Kevin Waterson
Port Macquarie, Australia