Hi Paul,
Try this out.
function duration($amount)
{
$seconds = $amount % 60;
if ($seconds < 10) { $seconds = "0".$seconds; }
$minutes = (($amount - $seconds) / 60) % 60;
if ($minutes < 10) { $minutes = "0".$minutes; }
$hours = ($amount - ($minutes * 60) - $seconds) / 3600;
$duration = $hou
Hi all,
Quick question about the best (and easiest) way to
format a display string into the HH:MM:SS format from
an integer var.
Is there a PHP function that will provide this? I've
looked at the various functions and all are used for
taking a date/time as use. Or is there a function
someone has