The date_default_timezone_get() function returns the default timezone used by all date/time functions in the script.
| Return Value: | Returns the timezone as a string |
|---|---|
| PHP Version: | 5.1+ |
| Changelog: | From PHP 5.4+; The timezone is no longer guessed from information in OS, and the TZ variable is no longer used |
PHP Date/Time Reference
Your message has been sent to W3Schools.