could::getStartDateDelta

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

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

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

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