3 ms·
Most notably relative time formats[1] are missing. [1] https://momentjs.com/docs/#/displaying/fromnow/ https://momentjs.com/docs/#/displaying/fromnow/
by redka 8y ago
Most notably relative time formats[1] are missing.
[1] https://momentjs.com/docs/#/displaying/fromnow/ https://momentjs.com/docs/#/displaying/fromnow/
- anonfunction 8y agoI built a library called human-date[1] that does this as a replacement for moment.js. It is ~30x faster according to this benchmark[2]. The API is not the same but very easy to use[3]. 1. https://github.com/montanaflynn/human-date https://github.com/montanaflynn/human-date 2. https://jsperf.com/human-date-vs-moment-js-relative-time/1 https://jsperf.com/human-date-vs-moment-js-relative-time/1 3. http://jsbin.com/cahokafuci/edit?html,js,console http://jsbin.com/cahokafuci/edit?html,js,console