javascript Date()函数是否返回本地时间? [英] Does the javascript Date() function return local time?
本文介绍了javascript Date()函数是否返回本地时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
例如:
var date = new Date();
日期是否相对于用户本地时区?
Would date be relative to the users local timezone?
推荐答案
是的,实际上它与用户自己的计算机时间相同。它不会从服务器或任何东西获取信息,而是从用户自己的计算机获取信息。
Yes, in fact it would be identical to the user's own computer time. It doesn't take the information from the server or anything, but from the user's own computer.
这篇关于javascript Date()函数是否返回本地时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文