Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
apoloand opened this issue Mar 11, 2025 · 0 comments
Open

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

apoloand opened this issue Mar 11, 2025 · 0 comments

Comments

@apoloand
Copy link

位置在这个页面

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 );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant