📜  node js在时区获取时间 - Javascript代码示例

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

代码示例1
// Javascript timestamps are specified in milliseconds
let ts = 1581338765000;

let nz_date_string = new Date(ts).toLocaleString("en-US", { timeZone: "Pacific/Chatham" });

// rest of the code