Patrick

Off the top of my head... Convert both date1 and date2 to unix timestamps, 
and subtract one from the other.  That will give you the number of seconds 
between them.  Then, convert to hours, minutes, etc as required.

Peter


At 10:38 PM 9/23/2002 +0200, Patrick wrote:
>i got 2 dates and i want to know how many minutes between em,, like:
>
>$date1 = date("Y-m-j H:i");
>$date2 = date("Y-m-j H:i", strtotime("now") + 1800);
>
>$minutes = date_something($date1, $date2);
>
>echo "there are $minutes between, $date1 and $date2";
>
>regards
>patrick
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php

- - - - - - - - - - - - - - - - - - - - -
Fourth Realm Solutions
[EMAIL PROTECTED]
http://www.fourthrealm.com
Tel: 519-739-1652
- - - - - - - - - - - - - - - - - - - - -


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

Reply via email to