DeadlineBounds::getHighBound

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

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

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