1 | # Luxon
|
2 |
|
3 | [![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]
|
4 |
|
5 | Luxon is a library for working with dates and times in JavaScript.
|
6 |
|
7 | ```js
|
8 | DateTime.now().setZone("America/New_York").minus({ weeks: 1 }).endOf("day").toISO();
|
9 | ```
|
10 |
|
11 | ## Upgrading to 2.0
|
12 |
|
13 | [Guide](https://moment.github.io/luxon/#upgrading)
|
14 |
|
15 | ## Features
|
16 | * DateTime, Duration, and Interval types.
|
17 | * Immutable, chainable, unambiguous API.
|
18 | * Parsing and formatting for common and custom formats.
|
19 | * Native time zone and Intl support (no locale or tz files).
|
20 |
|
21 | ## Download/install
|
22 |
|
23 | [Download/install instructions](https://moment.github.io/luxon/#/install)
|
24 |
|
25 | ## Documentation
|
26 |
|
27 | * [General documentation](https://moment.github.io/luxon/#/?id=luxon)
|
28 | * [API docs](https://moment.github.io/luxon/api-docs/index.html)
|
29 | * [Quick tour](https://moment.github.io/luxon/#/tour)
|
30 | * [For Moment users](https://moment.github.io/luxon/#/moment)
|
31 | * [Why does Luxon exist?](https://moment.github.io/luxon/#/why)
|
32 | * [A quick demo](https://moment.github.io/luxon/demo/global.html)
|
33 |
|
34 | ## Development
|
35 |
|
36 | See [contributing](CONTRIBUTING.md).
|
37 |
|
38 | ![Phasers to stun][phasers-image]
|
39 |
|
40 | [license-image]: http://img.shields.io/badge/license-MIT-blue.svg
|
41 | [license]: LICENSE.md
|
42 |
|
43 | [github-action-image]: https://github.com/moment/luxon/actions/workflows/test.yml/badge.svg
|
44 | [github-action-url]: https://github.com/moment/luxon/actions/workflows/test.yml
|
45 |
|
46 | [npm-url]: https://npmjs.org/package/luxon
|
47 | [npm-version-image]: https://badge.fury.io/js/luxon.svg
|
48 |
|
49 | [test-coverage-url]: https://codecov.io/gh/moment/luxon
|
50 | [test-coverage-image]: https://codecov.io/gh/moment/luxon/branch/master/graph/badge.svg
|
51 |
|
52 | [contributing-url]: https://github.com/moment/luxon/blob/master/contributing.md
|
53 | [contributing-image]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg
|
54 |
|
55 | [phasers-image]: https://img.shields.io/badge/phasers-stun-brightgreen.svg
|