PHP date_default_timezone_get()Functions
PHP Date/Time Reference Manual
Definition and Usage
The date_default_timezone_get() function returns the default timezone used by all date/time functions in the script.
Syntax
date_default_timezone_get();
Technical Details
| Return value: | Returns the timezone as a string. |
|---|---|
| PHP Version: | 5.1+ |
| Changelog: | As of PHP 5.4+, the timezone is no longer obtained from the operating system, and the TZ variable is no longer used. |
PHP Date/Time Reference Manual Other Extensions