• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/dispatch/methodschedule.php
  • Класс: BitrixSenderDispatchMethodSchedule
  • Вызов: MethodSchedule::parseTimesOfDay
static function parseTimesOfDay($time)
{
	if($time == '')
	{
		return null;
	}

	$time = trim($time);
	$found = [];
	if(
		preg_match("/^(d{1,2}):(d{1,2})$/", $time, $found)
		&& $found[1] <= 23
		&& $found[2] <= 59
	)
	{
		return [$found[1], $found[2]];
	}
	else
	{
		return null;
	}
}