Yes, but i decided to first ask here in case i was missing some point. I ended up extending Zend_Time_Measure yesterday with a new unit for time and something very close to what you suggested.
Thanks for your reply, Fernando Morgenstern [email protected] Em 13/04/2011, às 02:27, David Muir escreveu: > 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] > > -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
