Luxon (14.7k ⭐) — A library that leverages JavaScript’s Intl for speed and slimness while providing what Intl doesn’t: an immutable user-friendly API. It also supports time zones and localization. - Source: dev.to / 29 days ago
To be honest, use a library where someone else figured out the ambiguities and accounted for the edge cases. Good starting point: https://moment.github.io/luxon/#/math Date-fns is fine for simpler use cases but Luxon is a lot more complete, especially where it comes to time zones. - Source: Hacker News / 4 months ago
You should never, ever do date math naively like this. There are too many unexpected edge case, especially between time zones or daylight savings time or leap years, but even without them: https://moment.github.io/luxon/#/math In fact I would strongly argue you should never use the JS Date built-in at all because they are terrible. Use a library like Luxon or date-fns. As a frontend dev, this is the most common... - Source: Hacker News / 4 months ago
Eleventyone’s project scaffold includes: Eleventy with a skeleton site, a date format filter for Nunjucks based on Luxon, a tiny CSS pipeline with PostCSS, an equally tiny inline JS pipeline, JS search index generator, Netlify Dev for testing Netlify redirects, and a serverless (FaaS) development pipeline with Netlify Dev and Netlify Functions. - Source: dev.to / over 1 year ago
Luxon is a powerful and lightweight JavaScript library for working with dates and times. It was created as an alternative to the popular Moment.js library, with the goal of being faster, smaller, and easier to use. - Source: dev.to / over 1 year ago
If you ever wondered how luxon and native JS-Dates (with TimeZones) behave when converting them between each other and ISO-Date-Strings here are my tests:. - Source: dev.to / over 1 year ago
But how does this compare to Luxon? (https://moment.github.io/luxon/#/why). - Source: Hacker News / over 1 year ago
Now, let’s check out how we can use different date formats with the help of i18next and Luxon to handle date and time. - Source: dev.to / almost 2 years ago
Note that there exists a spiritual successor to Moment.js, Luxon[1]. The creator was a Moment maintainer and it lives under the Moment project umbrella. 1: https://moment.github.io/luxon/. - Source: Hacker News / almost 3 years ago
If the native Date object is not sufficient for you, I'd recommend using a date library. One that I like is Luxon. Source: about 3 years ago
The luxon date library, (created by one of the maintainers of moment ) has an different approach. - Source: dev.to / about 3 years ago
Now, let’s check out how we can use different date formats with the help of i18next and Luxon to handle date and time. - Source: dev.to / about 3 years ago
Most people agree with me. Handling dates in Javascript can be painful by itself, that's why the community created libraries like momentjs, date-fns, luxon, dayjs, and some others that are doing a great job! But first of all, I want to talk about this old man and probably the parent of all the other ones: MomentJS. - Source: dev.to / about 3 years ago
Until it has support everywhere, you might like Luxon. Source: about 3 years ago
Do you know an article comparing Luxon to other products?
Suggest a link to a post with product alternatives.
This is an informative page about Luxon. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.