1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс CTimeZone

Открытые статические члены

static Enabled ()
static OptionEnabled ()
static Disable ()
static Enable ()
static GetZones ()
static SetAutoCookie ()
static getTzCookie ()
static IsAutoTimeZone ($autoTimeZone)
static GetCookieValue ()
static SetCookieValue ($timezoneOffset)
static GetOffset ($USER_ID=null, $forced=false)
static getTimezoneOffset (string $timeZone)
static calculateOffset (string $timeZone)

Статические защищенные данные

static $enabled = 1
static $useTimeZones = false

Подробное описание

См. определение в файле time.php строка 12

Методы

◆ calculateOffset()

calculateOffset ( string $timeZone)
static

Calculates the difference between local server time and specified timezone in the present moment of time in seconds.

Аргументы
string$timeZone
Возвращает
int

См. определение в файле time.php строка 272

◆ Disable()

Disable ( )
static

См. определение в файле time.php строка 31

◆ Enable()

Enable ( )
static

См. определение в файле time.php строка 36

◆ Enabled()

Enabled ( )
static

См. определение в файле time.php строка 17

◆ GetCookieValue()

GetCookieValue ( )
static
Возвращает
null

См. определение в файле time.php строка 176

◆ GetOffset()

GetOffset ( $USER_ID = null,
$forced = false )
static
Аргументы
int | null$USER_IDIf USER_ID is set offset is taken from DB
bool$forcedIf set, offset is calculated regardless enabling/disabling by functions Enable()/Disable().
Возвращает
int

См. определение в файле time.php строка 193

◆ getTimezoneOffset()

getTimezoneOffset ( string $timeZone)
static

Returns timezone offset according to global settings.

Аргументы
string$timeZone
Возвращает
int

См. определение в файле time.php строка 252

◆ getTzCookie()

getTzCookie ( )
static

См. определение в файле time.php строка 141

◆ GetZones()

GetZones ( )
static

См. определение в файле time.php строка 41

◆ IsAutoTimeZone()

IsAutoTimeZone ( $autoTimeZone)
static

См. определение в файле time.php строка 149

◆ OptionEnabled()

OptionEnabled ( )
static

См. определение в файле time.php строка 22

◆ SetAutoCookie()

SetAutoCookie ( )
static

См. определение в файле time.php строка 88

◆ SetCookieValue()

SetCookieValue ( $timezoneOffset)
static

См. определение в файле time.php строка 184

Поля

◆ $enabled

$enabled = 1
staticprotected

См. определение в файле time.php строка 14

◆ $useTimeZones

$useTimeZones = false
staticprotected

См. определение в файле time.php строка 15


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/main/classes/general/time.php