4 ms·
I worked extensively with Luxon (a sibling project leveraging modern js constructs) and found it to be really great! I’m really happy with their approach of cre
by rudolph9 6y ago
I worked extensively with Luxon (a sibling project leveraging modern js constructs) and found it to be really great! I’m really happy with their approach of creating an entirely new project to embody the API and new features you might expect in newer release of moment. It allowed Luxon to mature for several years without the weight of supporting the legacy api and avoided confusion within the community. The direction for moment seems completely reasonable.
https://moment.github.io/luxon/ https://moment.github.io/luxon/
- rudolph9 6y ago> Ideas in Luxon > Luxon is built around a few core ideas: > * Keep the basic chainable date wrapper idea from Moment. Make all the types immutable. Make the API explicit; different methods do different things and have well-defined options. > * Use the Intl API to provide internationalization, including token parsing. Fall back to English if the browser doesn't support those APIs. > * Abuse the Intl API horribly to provide time zone support. Only possible for modern browsers. > * Provide more comprehensive duration support. > * Directly provide interval support. > * Write inline docs for everything. https://moment.github.io/luxon/docs/manual/why.html#ideas-in-luxon https://moment.github.io/luxon/docs/manual/why.html#ideas-in...
- mekster 6y agoDropped using Luxon when I couldn't easily chain like moment.js. moment.js's API is intuitive and I have been using Dayjs and it has been doing great.