• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/service/worktime/action/shiftwithdate.php
  • Класс: BitrixTimemanServiceWorktimeActionShiftWithDate
  • Вызов: ShiftWithDate::getMaxEndOffset
private function getMaxEndOffset()
{
	if ($this->schedule->isFixed())
	{
		return $this->shift->getDuration() / 2;
	}
	if ($this->schedule->isShifted())
	{
		return TimeDictionary::SECONDS_PER_HOUR;
	}
	return 0;
}