+0
Daily
16,455
stars
815
forks
100
watchers
578
prs
1,169
issues
0
releases
README
Luxon
[![MIT License][license-image]][license] [![Build Status][github-action-image]][github-action-url] [![NPM version][npm-version-image]][npm-url] [![Coverage Status][test-coverage-image]][test-coverage-url] [![PRs welcome][contributing-image]][contributing-url]
Luxon is a library for working with dates and times in JavaScript.
js
DateTime.now().setZone("America/New_York").minus({ weeks: 1 }).endOf("day").toISO();
🚀 The road to Luxon 4.0
Please read about and share your feedback on the plans for the next major version of Luxon!
Upgrading to 3.0
Guide
Features
DateTime, Duration, and Interval types.
Immutable, chainable, unambiguous API.
Parsing and formatting for common and custom formats.
Native time zone and Intl support (no locale or tz files).
Download/install
Download/install instructions
Documentation
General documentation
API docs
Quick tour
For Moment users
Why does Luxon exist?
A quick demo
Development
See contributing.
![Phasers to stun][phasers-image]
[license-image]: https://img.shields.io/badge/license-MIT-blue.svg
[license]: LICENSE.md
[github-action-image]: https://github.com/moment/luxon/actions/workflows/test.yml/badge.svg
[github-action-url]: https://github.com/moment/luxon/actions/workflows/test.yml
[npm-url]: https://npmjs.org/package/luxon
[npm-version-image]: https://badge.fury.io/js/luxon.svg
[test-coverage-url]: https://codecov.io/gh/moment/luxon
[test-coverage-image]: https://codecov.io/gh/moment/luxon/branch/master/graph/badge.svg
[contributing-url]: https://github.com/moment/luxon/blob/master/CONTRIBUTING.md
[contributing-image]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg
[phasers-image]: https://img.shields.io/badge/phasers-stun-brightgreen.svgTop issues
#1134`Duration#toHuman` does not print human-readable strings36 comments · 2022-02-09#909Interval.after creates invalid interval when given a DateTime with microseconds and zero duration35 comments · 2021-03-25#854Better Documentation regarding Size and Tree-Shaking25 comments · 2021-01-12#1358"Etc/UTC" is treated differently than 'UTC'.19 comments · 2023-01-07#1419Type for validated DateTime17 comments · 2023-04-11#484Duration#toISO() may not conform to ISO 8601.16 comments · 2019-03-30#1628fromISO too loose / fromFormat restrictive15 comments · 2024-05-15#664Feature request - localized numeric date, padded to 214 comments · 2020-02-12
Discussions
#1820A js/ts time provider compatible with luxon0 comments · 2026-10-06#1796I made Luxon 10x-100x faster for +10% minified bundle size.0 comments · 2026-08-10#1785Adding more than one space between time and date1 comments · 2026-06-21#1762How can we know what version of the IANA database Luxon is using internally ?1 comments · 2026-02-17#1750Is there a way to provide browsers with the missing ICU files to allow Luxon to work on more languages?1 comments · 2025-12-29#1745RRule luxon0 comments · 2025-10-29#1742Roadmap for Luxon 48 comments · 2025-10-08#1740Validity of DateTime from setZone with a valid Zone1 comments · 2025-09-26