Skip to content

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

Open
@apoloand

Description

@apoloand

位置在这个页面

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions