• <bdo id='TQfWQ'></bdo><ul id='TQfWQ'></ul>
    <i id='TQfWQ'><tr id='TQfWQ'><dt id='TQfWQ'><q id='TQfWQ'><span id='TQfWQ'><b id='TQfWQ'><form id='TQfWQ'><ins id='TQfWQ'></ins><ul id='TQfWQ'></ul><sub id='TQfWQ'></sub></form><legend id='TQfWQ'></legend><bdo id='TQfWQ'><pre id='TQfWQ'><center id='TQfWQ'></center></pre></bdo></b><th id='TQfWQ'></th></span></q></dt></tr></i><div id='TQfWQ'><tfoot id='TQfWQ'></tfoot><dl id='TQfWQ'><fieldset id='TQfWQ'></fieldset></dl></div>

      <legend id='TQfWQ'><style id='TQfWQ'><dir id='TQfWQ'><q id='TQfWQ'></q></dir></style></legend>

      <tfoot id='TQfWQ'></tfoot>

      <small id='TQfWQ'></small><noframes id='TQfWQ'>

        如果 javascript "(new Date()).getTime()";从 2 个不

        时间:2023-10-11
          <tbody id='Hmbz9'></tbody>

                <bdo id='Hmbz9'></bdo><ul id='Hmbz9'></ul>

                  <small id='Hmbz9'></small><noframes id='Hmbz9'>

                  <legend id='Hmbz9'><style id='Hmbz9'><dir id='Hmbz9'><q id='Hmbz9'></q></dir></style></legend>

                  <tfoot id='Hmbz9'></tfoot>
                • <i id='Hmbz9'><tr id='Hmbz9'><dt id='Hmbz9'><q id='Hmbz9'><span id='Hmbz9'><b id='Hmbz9'><form id='Hmbz9'><ins id='Hmbz9'></ins><ul id='Hmbz9'></ul><sub id='Hmbz9'></sub></form><legend id='Hmbz9'></legend><bdo id='Hmbz9'><pre id='Hmbz9'><center id='Hmbz9'></center></pre></bdo></b><th id='Hmbz9'></th></span></q></dt></tr></i><div id='Hmbz9'><tfoot id='Hmbz9'></tfoot><dl id='Hmbz9'><fieldset id='Hmbz9'></fieldset></dl></div>
                • 本文介绍了如果 javascript "(new Date()).getTime()";从 2 个不同的时区运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  如果 JavaScript (new Date()).getTime() 同时从 2 个不同的时区运行,你会得到相同的值吗?

                  If JavaScript (new Date()).getTime() is run from 2 different timezones simultaneously, will you get the same value?

                  这个值是否会受到运行浏览器的机器上设置的系统时间的影响?

                  Will this value be affected by the system time set on the machine where the browser is running?

                  推荐答案

                  是的,受系统时间影响.但是,如果本地时间是正确的(对于计算机设置的任何时区),它在任何时区都应该是相同的.

                  Yes, it's affected by system time. However, if the local time is correct (for whatever time zone the computer's set to), it should be the same in any time zone.

                  ECMAScript 标准说(§15.9.1.1):

                  The ECMAScript standard says (§15.9.1.1):

                  "时间是在 ECMAScript 中测量的自 1970 年 1 月 1 日以来的毫秒数UTC."

                  "Time is measured in ECMAScript in milliseconds since 01 January, 1970 UTC."

                  这篇关于如果 javascript "(new Date()).getTime()";从 2 个不同的时区运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何跨时区正确转换时间? 下一篇:Date.toISOString() 但本地时间而不是 UTC

                  相关文章

                  最新文章

                  <i id='sIwms'><tr id='sIwms'><dt id='sIwms'><q id='sIwms'><span id='sIwms'><b id='sIwms'><form id='sIwms'><ins id='sIwms'></ins><ul id='sIwms'></ul><sub id='sIwms'></sub></form><legend id='sIwms'></legend><bdo id='sIwms'><pre id='sIwms'><center id='sIwms'></center></pre></bdo></b><th id='sIwms'></th></span></q></dt></tr></i><div id='sIwms'><tfoot id='sIwms'></tfoot><dl id='sIwms'><fieldset id='sIwms'></fieldset></dl></div>
                  <tfoot id='sIwms'></tfoot>
                    <bdo id='sIwms'></bdo><ul id='sIwms'></ul>
                • <legend id='sIwms'><style id='sIwms'><dir id='sIwms'><q id='sIwms'></q></dir></style></legend>

                    1. <small id='sIwms'></small><noframes id='sIwms'>