A powerful, modern, and friendly wrapper for Javascript dates and times.
DateTime.local().setZone('America/New_York').minus({ weeks: 1 }).endOf('day').toISO();
Browser global | Debug | Minified |
Exports a global variable called "luxon". Use it like this
See the install instructions for details on older browsers, including IE 11. |
Demo |
Node |
|
Luxon as a Node.js module
|
||
AMD | Debug | Minified |
Luxon as an AMD module. Use with Require.js, System.js, and so on.
|
Demo |
ES6 | Debug |
Luxon as an ES6 module.
|
More details are available in the install guide.
Luxon is distributed under the MIT license. The code is available on GitHub. Patches welcome.