我想用 jquery timeago 创建动态 timeago 函数,但我可以用 php time() 来做,因为它对每个服务器都是一样的,我可以轻松处理它。但我听说不建议存储时间戳(我从php time() 函数)在 2038 等中将是非常高的数字。
我还观看了 facebook html 代码,我认为它们也使用时间戳,因为我看到了这个:
<abbr title="Sunday, July 01, 2016 at 12:24pm" data-utime="1468743808" class="timestamp livetimestamp">
<span class="timestampContent">about an hour ago</span></abbr>
data-utime 是指他们存储时间戳?但是为什么不建议存储呢?真的时间戳在未来会是非常高的数字吗?