Easy Tutorial
❮ Filter Unsafe Raw Php Imagecolorsforindex ❯

PHP date_default_timezone_get() Function

PHP Date/Time Reference Manual

Example

Return the default timezone:


Definition and Usage

The date_default_timezone_get() function returns the default timezone used by all date/time functions in the script.

Syntax

Technical Details

Return Value: Returns the timezone as a string.
PHP Version: 5.1+
--- ---
Changelog: Starting from PHP 5.4+, the timezone no longer fetches information from the operating system, and the TZ variable is no longer used.
--- ---
❮ Filter Unsafe Raw Php Imagecolorsforindex ❯