一、Moment.js

Moment.js日期处理类库

二、Day.js

Day.js是一个轻量的处理时间和日期的 JavaScript 库,和 Moment.js 的 API 设计保持完全一样

三、timeago.js

timeago.js用来将datetime时间转化成类似于* 时间前的描述字符串,例如:“3小时前”。

文章目录