📜  将 javascritp getTime() 转换为日期时间 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:34.188000             🧑  作者: Mango

代码示例1
var time = new Date().getTime(); // get your number
var date = new Date(time); // create Date object

console.log(date.toString()); // result: Wed Jan 12 2011 12:42:46 GMT-0800 (PST)