Live data from Hacker News

Luxon – A library for working with dates and times in JS

github.com

1–10 of 80 posts

Re: Luxon – A library for working with dates and times in JS

#4
post #3
post #2

Not a direct js dev so forgive my ignorance. How does this compare to moment.js [0]? Any feature differences? [0] https://momentjs.com/

There's a page explaining this: https://moment.github.io/luxon/docs/manual/faq/why.html

Thanks. This link should be on the github page to be honest. For people like me who do not (always) click through if they don’t see an immediate need. Only now notice the url contains moment and this is part of moment.

Re: Luxon – A library for working with dates and times in JS

#6
I've migrated a lot of code from moment to date-fns because of moment's bulky size and vast, mutable API. Luxon seems to fix the API issue. date-fns is still great for simple operations, but I'll definitely consider this for new projects with nontrivial datetime handling.

Re: Luxon – A library for working with dates and times in JS

#10
post #4
post #3

Earlier quoted context omitted.

There's a page explaining this: https://moment.github.io/luxon/docs/manual/faq/why.html

Thanks. This link should be on the github page to be honest. For people like me who do not (always) click through if they don’t see an immediate need. Only now notice the url contains moment and this is part of moment.

Well, perhaps the people who don't care to investigate just aren't a target of this library at the moment.
Post reply on HN