• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/util/process.php
  • Класс: BitrixTasksUtilProcess
  • Вызов: Process::getTimeString
protected function getTimeString($time = 0)
	{
		if($time == 0)
		{
			$h = $m = $s = 0;
		}
		else
		{
			$h = floor($time / 3600);
			$m = floor(($time - $h * 3600) / 60);
			$s = $time - $h * 3600 - $m * 60;

			if(mb_strlen($m) == 1)
			{
				$m = '0'.$m;
			}

			if(mb_strlen($s) == 1)
			{
				$s = '0'.$s;
			}
		}

		return $h.':'.$m.':'.$s;
	}