Menu Home

date_default_timezone_get

osbo.com | PHP | Functions | date_default_timezone_get

Gets the default timezone used by all date/time functions in a script

Syntax

date_default_timezone_get ( void ) : string

Return

Returns a string.

Examples

1

UTC

2

America/Los_Angeles

PHP