DeadlineBounds::getLowBound

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. DeadlineBounds
  4. getLowBound
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/counterquerybuilder/queryparts/deadlinebounds.php
  • Класс: Bitrix\Crm\Counter\CounterQueryBuilder\QueryParts\DeadlineBounds
  • Вызов: DeadlineBounds::getLowBound
public function getLowBound(QueryParams $params): ?DateTime
{
	if (!$params->periodFrom())
	{
		return null;
	}
	$lowBound = DateTime::createFromTimestamp($params->periodFrom()->getTimestamp());
	$lowBound->setTime(0, 0, 0);

	return CCrmDateTimeHelper::getServerTime($lowBound, $params->firstUserId())->disableUserTime();
}

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