• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/volume/timer.php
  • Класс: BitrixDiskVolumeTimer
  • Вызов: Timer::checkTimeEnd
public function checkTimeEnd(): bool
{
	if ($this->timeLimit > 0 && $this->startTime > 0)
	{
		$currentTime = time();
		if (($currentTime - $this->startTime) >= $this->timeLimit)
		{
			$this->timeLimitReached = true;
			return false;
		}
	}

	return true;
}