string CCourse::TimeToStr( int seconds );
The TimeToStr method takes seconds and converts the value into a date string containing days, hours, minutes and seconds.
Parameter | Description |
---|---|
seconds | The number of seconds. |
The method returns a string in form of DD.HH.MM.SS.
<? if (CModule::IncludeModule("learning")) { $seconds = 56789; $time = CCourse::TimeToStr($seconds); echo $time; //print 15 hr. 46 min. 29 sec. } ?>
© 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |