Dear Kevin,

I used timestamp allready as following;

$today = strtotime ("1 february 2003");
$enddate = strtotime ("1 march 2003");

$diff = $enddate - $today;

But result comes as

2419200

How can I convert that numbers to days

Best Regards



"Kevin Waterson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This one time, at band camp,
> "qt" <[EMAIL PROTECTED]> 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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to