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

标签 javascript json date encoding formatting

我一直在搜索,但我似乎无法弄清楚此 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/

相关文章:

javascript - 在 Angular 中,在选定的选项上为其他选项设置默认值

json - Play Map[Int,_] 的 JSON 格式化程序

ios - 日期格式 Swift 3.0

javascript - 多个状态按钮 - 背景颜色

JavaScript数学,在Jquery模板中四舍五入到小数点后两位

javascript - twilio video 的群组房间和点对点房间有什么区别?

javascript - JQuery Mobile + ChartJS : Responsive Bar Chart displayed only after resizing

json - 处理从 Facebook Messenger 传递的 JSON 消息

mongodb - 异常 : can't convert from BSON type EOO to Date

java - 从差异/减去两个期间(具有负时间)创建新日期