开发者

PHP date_default_timezone_set() and time()

开发者 https://www.devze.com 2023-04-06 10:45 出处:网络
Does date_default_timezone_set() function affect the value of time()? Or开发者_如何学JAVA does it just affect the date() function?time() is timezone independent. See this comment on PHP\'s time() docu

Does date_default_timezone_set() function affect the value of time()? Or开发者_如何学JAVA does it just affect the date() function?


time() is timezone independent. See this comment on PHP's time() documentation page:

The function time() returns always timestamp that is timezone independent (=UTC).

0

精彩评论

暂无评论...
验证码 换一张
取 消