Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

js date lib compare #208

Open
teazean opened this issue Apr 23, 2018 · 1 comment
Open

js date lib compare #208

teazean opened this issue Apr 23, 2018 · 1 comment

Comments

@teazean
Copy link
Owner

teazean commented Apr 23, 2018

  1. moment.js
  2. luxon
  3. date-fns
  4. js-joda
  5. dayjs
@teazean
Copy link
Owner Author

teazean commented Apr 24, 2018

lib min-size with-locale-min-size notes
moment.js 53k 328k
luxon 66k - 没本地化
date-fns 74k 本地化需要额外引入 类 lodash 模块开发
js-joda 262k - 没本地化,不使用 Date 对象,自己实现解析,号称比其他库快 2-10 倍
dayjs 6k - 没有本地化,接口和 moment.js 保持一致,但实现的接口较少

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant