<?php
$total = 685;
$horas = floor($total / 3600); $minutos = floor(($total - ($horas * 3600)) / 60); $segundos = floor($total % 60); echo $horas . ":" . $minutos . ":" . $segundos;
PD9waHAKCiR0b3RhbCA9IDY4NTsKJGhvcmFzID0gZmxvb3IoJHRvdGFsIC8gMzYwMCk7CiRtaW51dG9zID0gZmxvb3IoKCR0b3RhbCAtICgkaG9yYXMgKiAzNjAwKSkgLyA2MCk7CiRzZWd1bmRvcyA9IGZsb29yKCR0b3RhbCAlIDYwKTsKZWNobyAkaG9yYXMgLiAiOiIgLiAkbWludXRvcyAuICI6IiAuICRzZWd1bmRvczs=