|
Posted by Hans 'pritaeas' Pollaerts on 07/19/06 15:05
Try this, you can create a function from it:
<?php
$time = date ("H:m", time ());
echo $time . " => ";
sscanf ($time, "%d:%d", $hours, $minutes);
echo ($hours * 60) + $minutes . " minutes";
?>
"PSI_Orion" <orion@psiss.com> wrote in message
news:WXpvg.494$t4.298@newsfe3-win.ntli.net...
> Is there a simple function that returns HH:MM to an actual integer? In
> other words, would convert 1:30 to 90, 2:00 to 120, 4:00 to 240, 1:56 to
116
> etc. or is this something you have to create a function for?
>
> I've looked at all the date and time functions but for the life of me, I
> can't find which one it is I need to use.
>
> Regards
>
> PSI_Orion
>
>
Navigation:
[Reply to this message]
|