date_default_timezone_get
date_default_timezone_get
(PHP 5 >= 5.1.0, PHP 7)
date_default_timezone_get — Gets the default timezone used by all date/time functions in a script
Description
string date_default_timezone_get ( void )
In order of preference, this function returns the default timezone by:
-
Reading the timezone set using the date_default_timezone_set() function (if any)
-
Prior to PHP 5.4.0 登录查看完整内容