前端组件库
Section: 12. 日期格式化 & 时间轴
Entry
Appears in 5 awesome lists
Simple library (less then 2kb) used to format date with *** time ago statement.
Section: 12. 日期格式化 & 时间轴
Section: Date · Simple library (less then 2kb) used to format date with *** time ago statement.
Section: Date & Time · A tiny(~1.7kb) library used to format date with *** time ago statement.
Section: Dates and Time · Format dates into stuff like X minutes ago or in X hours,
Section: 日期 和 时间 · timeago.js 是一个很小的(2.0 kb)库,用于使用 *** time ago 语句格式化日期。
⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
Not tiny as a whole, but most functions are under 1 kB each (format and parse are quite heavy).
(label: Up-For-Grabs) A lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates.
Convert milliseconds to a human readable string: 1337000000 → 15d 11h 23m 20s.
Lightweight date formatting and parsing (~2KB). Meant to replace parsing and formatting functionality of moment.js.
clock8: The original jQuery plugin that makes it easy to support automatically updating fuzzy timestamps (e.g. "4 minutes ago").
Timezone support for moment.js.