GetTimeFormat
string CSite::GetTimeFormat ( lang=false, bool SearchInSitesOnly = false, format = false );
The method is used to handle the date format. Static method.
Parameters
Parameter | Description | Available from version |
---|---|---|
lang | Site language. Optional parameter. Current site language is used by default. | |
bSearchInSitesOnly | Optional parameter. If the variable is set to true, the administrative section will use the default site language instead of language of the administrative section. | |
format | Time format. "False" by default. |
Returned value
Returns the time format, specified in the site settings.
Examples of use
Returns the php time format:
echo $GLOBALS["DB"]->DateFormatToPHP( CSite::GetTimeFormat() );
© «Bitrix24», 2001-2024