Example
Return the default timezone:
html
<?php
echo date_default_timezone_get();
?>
Definition and Usage
The date_default_timezone_get() function returns the default timezone used by all date/time functions in the script.
Syntax
text
date_default_timezone_get()
Technical Details
| Return Value: | Returns the timezone as a string |
|---|---|
| PHP Version: | 5.1+ |