could::getEndDateDelta

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. could
  4. getEndDateDelta
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/processor/task/scheduler/result/impact.php
  • Класс: BitrixTasksProcessorTaskSchedulerResultcould
  • Вызов: could::getEndDateDelta
public function getEndDateDelta()
{
	/** @var DateTime[] $dataOrig */
	$dataOrig = $this->getDataPristine();

	if(!is_object($dataOrig['END_DATE_PLAN']) || !is_object($this->data['END_DATE_PLAN']))
	{
		return INF;
	}

	return $this->data['END_DATE_PLAN']->getTimestamp() - $dataOrig['END_DATE_PLAN']->getTimestamp();
}

Добавить комментарий