i use this url for time to minutes conversion but extra hour are shown where there is no hour in time.
my code is
<?php
$seconds=strtotime('00:11:10').'<br/>';
echo gmdate('H:i:s',$seconds).'<br/>';
$H = floor(($seconds / 3600));
$i = ($seconds / 60) % 60;
$s = $seconds % 60;
echo sprintf("%02d:%02d:%02d", $H, $i, $s);
?>
the output showing 389496:11:10 //it should 00:11:10 what the problem is...?? I really getting pain on this any help would be appreciated .
";` as a second line so then you will see that it's a bigger number than you think. – Jacek Sokolowski Jun 08 '14 at 06:39