zh.javascript.info icon indicating copy to clipboard operation
zh.javascript.info copied to clipboard

数据类型日期和时间中的注释01.02写成了02.01

Open apoloand opened this issue 10 months ago • 0 comments

位置在这个页面

new Date(milliseconds) 创建一个 Date 对象,其时间等于 1970 年 1 月 1 日 UTC+0 之后经过的毫秒数(1/1000 秒)。

// 0 表示 01.01.1970 UTC+0 let Jan01_1970 = new Date(0); alert( Jan01_1970 );

// 现在增加 24 小时,得到**02.01.1970 UTC+0** let Jan02_1970 = new Date(24 * 3600 * 1000); alert( Jan02_1970 );

apoloand avatar Mar 11 '25 08:03 apoloand