gpt4 book ai didi

javascript - 快速 : What Format is the Date in this JSON file

转载 作者:行者123 更新时间:2023-11-30 16:03:27 24 4
gpt4 key购买 nike

我一直在搜索,但我似乎无法弄清楚此 JSON 数据中的日期格式。

您可以在此处查看数据:http://hypem.com/playlist/loved/beaujuda/json/3/data.js

几个例子:

"dateloved":1427397557

实际日期:2015 年 3 月 26 日

"dateloved":1426902182

实际日期:2015 年 3 月 20 日

"dateloved":1425067269

实际日期:2015 年 2 月 27 日

似乎有某种模式,但我无法弄清楚。我假设它是某种由 javascript 或 JSON 编码的日期格式......

提前致谢!

最佳答案

它被称为 Unix 时间或 Epoch 时间。

Unix time (also known as POSIX time or Epoch time) is a system for describing instants in time, defined as the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970, not counting leap seconds.

参见 here获取更多信息。

顺便说一句,您可以将其转换为人类可读的格式here .

关于javascript - 快速 : What Format is the Date in this JSON file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37366934/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com