• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/classes/general/utils.php
  • Класс: CIntranetUtils
  • Вызов: CIntranetUtils::getCurrentDateTimeFormat
static function getCurrentDateTimeFormat($params = array())
{
	$woYear = (!empty($params['woYear']) && $params['woYear']);
	$woTime = (!empty($params['woTime']) && $params['woTime']);

	$culture = BitrixMainContext::getCurrent()->getCulture();
	$currentDateTimeFormat = ($woYear ? $culture->getDayMonthFormat() : $culture->getLongDateFormat());
	if (!$woTime)
	{
		$currentDateTimeFormat .= ' '.$culture->getShortTimeFormat();
	}

	return $currentDateTimeFormat;
}