- Модуль: timeman
- Путь к файлу: ~/bitrix/modules/timeman/lib/rest.php
- Класс: BitrixTimemanRest
- Вызов: Rest::formatTime
static function formatTime($ts)
{
return str_pad(intval($ts / 3600), 2, '0', STR_PAD_LEFT)
.':'.str_pad(intval(($ts % 3600) / 60), 2, '0', STR_PAD_LEFT)
.':'.str_pad(intval($ts % 60), 2, '0', STR_PAD_LEFT);
}