On March 11, 2003 09:35 pm, Justin French wrote:
> READ THE F***ING MANUAL!!!
>
> http://php.net/round clearly shows you how to round to a whole
> number.
>
> if you want to round ALL decimals up, then you might have to create
> something from scratch, but
ceiling and floor functions are part of n
on 12/03/03 4:35 PM, Justin French ([EMAIL PROTECTED]) wrote:
> if you want to round ALL decimals up, then you might have to create
> something from scratch, but
Actually, there's a link to both ceil() and floor() on the round() page in
the manual.
Justin
--
PHP General Mailing List (http://w
gt; From: Justin French [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 10, 2003 8:27 PM
> To: Ben C.; [EMAIL PROTECTED]
> Subject: Re: [PHP] Subtracting two dates
>
>
> $otherDate = "2003-11-15"; // -mm-dd format
> $otherDateStamp = strtotime($o
ECTED]
Subject: Re: [PHP] Subtracting two dates
Then you need to decide if you want to show days, or hours, or years
difference...
I'll show you hours and days:
You then need to round the number using round().
Justin
on 11/03/03 3:02 PM, Ben C. ([EMAIL PROTECTED]) wrote:
> There
on 11/03/03 5:04 PM, Ben C. ([EMAIL PROTECTED]) wrote:
> Thanks, Justin. It works.
Of course it does :P
HTH
Justin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks, Justin. It works.
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 8:27 PM
To: Ben C.; [EMAIL PROTECTED]
Subject: Re: [PHP] Subtracting two dates
Then you need to decide if you want to show days, or hours, or years
difference
Then you need to decide if you want to show days, or hours, or years
difference...
I'll show you hours and days:
You then need to round the number using round().
Justin
on 11/03/03 3:02 PM, Ben C. ([EMAIL PROTECTED]) wrote:
> There are a lot of artlicles on this but I need a simple solu
7 matches
Mail list logo