Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在节点中执行以下行时
> let x = new Date() > x
我得到类似的东西
2020-06-04T21:51:08.059Z
什么是 .059Z,它将如何转换为 GMT 时区?
“Z”是 DateTimes 的一种独特情况。文字“Z”实际上是 UTC 时间的 ISO 8601 DateTime 标准的一部分。
let x = new Date(); let gmtZone = x.toGMTString(); console.log(gmtZone)