作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我一直在搜索,但我似乎无法弄清楚此 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/
我是一名优秀的程序员,十分优秀!