• Модуль: support
  • Путь к файлу: ~/bitrix/modules/support/classes/general/timetablecache.php
  • Класс: CSupportTimetableCache
  • Вызов: CSupportTimetableCache::Possible
static function Possible($d = "")
{
	if(!class_exists('DateTime'))
	{
		return false;
	}
	try
	{
		if($d <> '')
		{
			$res = new DateTime($d);
		}
		else
		{
			$res = new DateTime(null, new DateTimeZone(date_default_timezone_get()));
		}
	}
	catch(Exception $e)
	{
		return false;
	}
	return true;
}