You mean something like:
function toHMS($time){
$seconds = $time % 60;
$minutes = (($time-$seconds) % 3600) / 60;
$hours = (int) ($time-$minutes)/3600;
return sprintf('%02d:%02d:%02d',$hours , $minutes, $seconds);
}
Cheers,
David
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Handling-time-measures-tp3444772p3446310.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]