Dates::beginOfCurrentDay

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Dates
  4. beginOfCurrentDay
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/counterquerybuilder/deadlinebased/datefilters/dates.php
  • Класс: Bitrix\Crm\Counter\CounterQueryBuilder\DeadlineBased\DateFilters\Dates
  • Вызов: Dates::beginOfCurrentDay
static function beginOfCurrentDay(QueryParams $params): DateTime
{
	$date = DateTime::createFromTimestamp((new DateTime())->getTimestamp());
	$date->setTime(00, 00, 0);
	return CCrmDateTimeHelper::getServerTime($date,$params->firstUserId())->disableUserTime();
}

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