Trying to generate simple "H:i:s" string from seconds, but can't
example:
$iSecond = 188;
$dtF = new DateTime("@0");
$dtT = new DateTime("@$iSecond");
$size = $dtF->diff($dtT)->format('%H:%i:%s');
echo $size;
should show "00:03:08" , but in fact "00:3:8"
if there is some another date format options to use in format method?
there is fiddle https://3v4l.org/Coi7q