A day exists out of two sets of 12 hours. Every hour has 60 minutes and every minute has 60 seconds. Why is all this so complicated? Strange, because there is an easy version already worked out at wikipedia, Decimal time. Simple! 10 hours a day, 100 minutes an hour and 100 seconds a minute. And that’s it!
The only point of attention that you need to take into account is that work-hours need to be adjusted accordingly. In stead of 8 hour you will need to work only 3 1/3 hour (although both are equal).
$hours:$minutes.$seconds
” );
$decsecondstotal = $secondstotal * 1.15740;
$dechours = floor(($decsecondstotal / 10000));
$decminutes = floor(( ($decsecondstotal – ($dechours * 10000) ) /100));
$decseconds = floor((($decsecondstotal – ($dechours * 10000)) – ($decminutes * 100) ) );
if ($decminutes < 10) $decminutes = "0".$decminutes;
if ($decseconds < 10) $decseconds = "0".$decseconds;
echo ("Decimal time: $dechours:$decminutes.$decseconds
“);
?>
De servertijd staat niet erg goed:
https://ximaar.blogspot.nl/2013/04/kdecimale-klok.html