Recurrence::isDateWithinLimits

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. Recurrence
  4. isDateWithinLimits
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/event/tools/recurrence.php
  • Класс: BitrixCalendarCoreEventToolsRecurrence
  • Вызов: Recurrence::isDateWithinLimits
private function isDateWithinLimits(DateTime $date, array $limits, int $counter): bool
{
	return (empty($limits['count']) || $counter < $limits['count'])
		&& ($date->format('Ymd') >= $limits['from']->format('Ymd'))
		&& (empty($limits['to']) || $date->format('Ymd') <= $limits['to']->format('Ymd'))
		;
}

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