"Tom Beidler" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> My mistake. The correct code that works is;
>
> $display_time = date("H:i");
>
> // round time to nearest 15 minute interval
> $display_timex = explode (":",$display_time) ;
> if (($display_timex[1]
operator error. I didn't show all the code. Here it is;
$display_time = date("H:i");
// round time to nearest 15 minute interval
$display_timex = explode (":",$display_time) ;
if (($display_timex[1] >= 00) || ($display_timex[1] <= 07)) {
$insert_time = $display_timex[0] . ":00";
} elseif (($
ent: Wednesday, May 01, 2002 6:06 PM
> To: php list
> Subject: [PHP] bumping up hour by one
>
> I'm having some problem with some code where I'm trying to round the
hour
> up
> to the next hour if the minutes are between 53 and 59. Here's the
> important
>
I'm having some problem with some code where I'm trying to round the hour up
to the next hour if the minutes are between 53 and 59. Here's the important
part of the code so you can see what I'm trying to do.
$display_time = date("H:i");
// round time
$display_timex = explode (":",$display_time)
4 matches
Mail list logo