开发者

PHP date_default_timezone_set() and time()

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜