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