• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/report/handler/deal.php
  • Класс: Bitrix\Crm\Integration\Report\Handler\Deal
  • Вызов: Deal::getDayCountBetween
private function getDayCountBetween(DateTime $fromDate, DateTime $toDate)
{
	$diff = $toDate->getTimestamp() - $fromDate->getTimestamp();

	return (int)floor($diff / (60 * 60 * 24));
}