- 1
- 2
- 3
- 4
- 5
- 6
- 7
function calcHTime($stt) {
$secs = time() - $stt;
$h = (int) ($secs / 3600);
$m = (int) (($secs - ($h * 3600)) / 60);
$s = (int) ($secs - ($h * 3600) - ($m * 60));
return sprintf("%02d:%02d:%02d", $h, $m, $s);
}
Balza 25.08.2021 20:58 # 0