⏱ A library for working with dates and times in JS
Luxon is a library for working with dates and times in JavaScript.
DateTime.now().setZone("America/New_York").minus({ weeks: 1 }).endOf("day").toISO();Please read about and share your feedback on the plans for the next major version of Luxon!
See contributing.
Constructing IANAZones has huge memory impact on nodejs
Interval#isEmpty() throws TypeError on an Invalid interval instead of returning false (unlike its siblings)
Duration.fromISO("P"/"PT"/"-P") parses as a valid zero duration, causing Interval overlaps()/merge() to silently ignore the interval
fullwide/hanidec numberingSystem: digit matcher and decoder tables have drifted apart, causing silent data corruption
Interval#splitBy / #divideEqually hangs forever on a negative duration (still reproducible on 3.7.2, distinct from #186)
Share `Locale` instances between DateTimes with the same configuration
`Duration.toHuman` throws RangeError when Duration uses `quarters`
Add Duration.fromFormat(str, fmt)
`toFormat` with unknown locale defaults to system locale instead of Luxon settings `defaultLocale`
Proposal: Modernize the landing page and docs UI