PHP date_default_timezone_get () function
PHP Date / Time Reference Manual
Examples
Returns the default time zone:
<?php
echo date_default_timezone_get();
?>
echo date_default_timezone_get();
?>
Running instance »
Definition and Usage
date_default_timezone_get () function returns the script all the default date / time functions use the time zone.
grammar
date_default_timezone_get();
technical details
return value: | Returns a string time zone. |
---|---|
PHP version: | 5.1+ |
Update log: | Starting from PHP 5.4+, time zone no longer obtain information from the operating system, TZ variable is no longer used. |
PHP Date / Time Reference Manual