I want to display a time like this
80:00:00
Hours:Minutes:Seconds
When I use this
gmdate("H:i:s", $time)
It displays
08:00:00
gmdate() has hours display 0 once it reaches 24, start counting up to 24 again.
I have tried this
$minsec = gmdate("i:s", $time);
$hours = gmdate("d", $time)*24 + gmdate("H", $time);
echo $hours.':'.$minsec;
But this displays.
32:00:00
I understand from elsewhere on stackoverflow this might be because of daylight savings time. See here.
Convert days from gmdate() into hours?
I have not found any good solutions. What is a consistent, function solution to this problem.