1 | # Luxon
|
2 |
|
3 | [![MIT License][license-image]][license] [![Build Status][travis-image]][travis-url] [![NPM version][npm-version-image]][npm-url] [![Coverage Status][test-coverage-image]][test-coverage-url] [![Doc coverage][doc-coverage-image]][doc-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.local().setZone('America/New_York').minus({ weeks: 1 }).endOf('day').toISO();
|
9 | ```
|
10 |
|
11 | ## Features
|
12 | * DateTime, Duration, and Interval types.
|
13 | * Immutable, chainable, unambiguous API.
|
14 | * Parsing and formatting for common and custom formats.
|
15 | * Native time zone and Intl support (no locale or tz files).
|
16 |
|
17 | ## Download/install
|
18 |
|
19 | [Download/install instructions](https://moment.github.io/luxon/docs/manual/install.html)
|
20 |
|
21 | ## Documentation
|
22 |
|
23 | * [General documentation][doc-url]
|
24 | * [API docs](https://moment.github.io/luxon/docs/identifiers.html)
|
25 | * [Quick tour](https://moment.github.io/luxon/docs/manual/tour.html)
|
26 | * [For Moment users](https://moment.github.io/luxon/docs/manual/moment.html)
|
27 | * [Why does Luxon exist?](https://moment.github.io/luxon/docs/manual/why.html)
|
28 | * [A quick demo](https://moment.github.io/luxon/demo/global.html)
|
29 |
|
30 | ## Development
|
31 |
|
32 | See [contributing](contributing.md).
|
33 |
|
34 | ![Phasers to stun][phasers-image]
|
35 |
|
36 | [license-image]: http://img.shields.io/badge/license-MIT-blue.svg
|
37 | [license]: license.txt
|
38 |
|
39 | [travis-url]: http://travis-ci.org/moment/luxon
|
40 | [travis-image]: https://api.travis-ci.org/moment/luxon.svg?branch=master
|
41 |
|
42 | [npm-url]: https://npmjs.org/package/luxon
|
43 | [npm-version-image]: https://badge.fury.io/js/luxon.svg
|
44 |
|
45 | [doc-url]: https://moment.github.io/luxon/docs/
|
46 | [doc-coverage-image]: https://moment.github.io/luxon/docs/badge.svg
|
47 |
|
48 | [test-coverage-url]: https://codecov.io/gh/moment/luxon
|
49 | [test-coverage-image]: https://codecov.io/gh/moment/luxon/branch/master/graph/badge.svg
|
50 |
|
51 | [contributing-url]: https://moment.github.io/luxon/docs/manual/contributing.html
|
52 | [contributing-image]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg
|
53 |
|
54 | [phasers-image]: https://img.shields.io/badge/phasers-stun-brightgreen.svg
|