|
|
|
|
|
by ryenus
3139 days ago
|
|
So it's a better moment made by the moment team: https://moment.github.io/luxon/docs/manual/faq/moment.html Major differences: * Immutable
* Months in Luxon are 1-indexed instead of 0-indexed like in Moment and the native Date type.
* Localizations and time zones are implemented by the native Intl API (or a polyfill of it), instead of by the library itself.
* Luxon has both a Duration type and an Interval type. The Interval type is like Twix.
* Luxon lacks the relative time features of Moment and will until the required facilities are provided by the browser.
|
|
I'm in need of a fast date and time library (close to realtime) and have reluctantly rolled my own until I find a better option.