• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/calc.php
  • Класс: CBPCalc
  • Вызов: CBPCalc::functionStrtotime
private function functionStrtotime($args)
{
	$ar = $this->ArrgsToArray($args);
	$datetime = (string)array_shift($ar);
	$baseDate = array_shift($ar);

	$baseTimestamp = $baseDate ? $this->makeTimestamp($baseDate, true) : time();

	if (!$baseTimestamp)
	{
		return null;
	}

	$timestamp = strtotime($datetime, (int)$baseTimestamp);

	if ($timestamp === false)
	{
		return null;
	}

	return new BizprocBaseTypeValueDateTime($timestamp);
}