- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/classes/general/site.php
- Класс: CAllSite
- Вызов: CAllSite::GetTimeFormat
static function GetTimeFormat($lang=false, $bSearchInSitesOnly = false)
{
$dateTimeFormat = self::GetDateFormat('FULL', $lang, $bSearchInSitesOnly);
preg_match('~[HG]~', $dateTimeFormat, $chars, PREG_OFFSET_CAPTURE);
return trim(mb_substr($dateTimeFormat, $chars[0][1]));
}