📜  javascript代码示例中的strtotime

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

代码示例1
You need to use the same time-zone for a same comparison:

echo strtotime("2011-01-26 13:51:50 GMT");
// 1296049910

var d = Date.parse("2011-01-26 13:51:50 GMT") / 1000;
console.log(d);
// 1296049910