Re: how to calculate
| From: | Rasmus Lerdorf | Date: | Tue, 20 May 2003 07:36:27 +0000 |
| Subject: | Re: how to calculate | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148253@lists.php.net to get a copy of this message | ||
Convert them to timestamps using strtotime() and then just substract one
from the other and you will get the difference in seconds.
-Rasmus
On Tue, 20 May 2003, buttoz wrote:
> hi,
>
> i have 2 fields of date type 00-00-00 00:00:00 , how can calculate the
> diffrent of 2 filed
>
> i want the result in minutes
>
> $field1 , $field2
>
> how caculate $field1-$field2 = result in minutes
>
> thanks
>
>
>
>