📜  在 javascript 代码示例中解析时间

📅  最后修改于: 2022-03-11 15:02:52.492000             🧑  作者: Mango

代码示例1
const unixTimeZero = Date.parse('01 Jan 1970 00:00:00 GMT');
const javaScriptRelease = Date.parse('04 Dec 1995 00:12:00 GMT');

console.log(unixTimeZero);
// expected output: 0

console.log(javaScriptRelease);
// expected output: 818035920000