date_default_timezone_get

(PHP 5 >= 5.1.0)

date_default_timezone_get — Gets the default timezone used by all date/time functions in a script

Описание

string date_default_timezone_get ( void )

This functions returns the default timezone, using the following "guess" order:

  • The timezone set using the date_default_timezone_set() function (if any)

  • The TZ environment variable (if non empty)

  • The date.timezone ini option (if set)

  • "magical" guess (if the operating system supports it)

  • If none of the above options succeeds, return UTC

Возвращаемые значения

Returns a string.

Смотрите также

Коментарии

Автор:
If you are upgrading an ancient script which was written pre PHP 5.4 please be aware that  the configured server timezone was used to guess the timezone; this was changed to UTC with PHP 5.4!
2023-02-23 00:23:59
http://php5.kiev.ua/manual/ru/function.date-default-timezone-get.html

    Поддержать сайт на родительском проекте КГБ