Re: [OFF: logical question] rounding in steps of 15
| From: | Norbert Wenzel | Date: | Thu, 18 Aug 2005 08:53:09 +0000 |
| Subject: | Re: [OFF: logical question] rounding in steps of 15 | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-220841@lists.php.net to get a copy of this message | ||
Richard Lynch wrote:
You're on your own converting 1:38 or 357 into minutes, but: $minutes = 357; $minutes = 15 * round($minutes / 15); echo "minutes: $minutes\n";Thank you both. The conversion from 1:38 to 98 is no problem, but I knew there was a more beautiful way round to 15 minutes. Thanks. Norbert