You should be working with UNIX timestamps here.  Convert the dates to human
readble only after you've done the calcuations.
-Kevin


----- Original Message -----
From: "Patrick" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 2:38 PM
Subject: [PHP] date functions


> 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
>


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

Reply via email to