# Luxon

A powerful and friendly wrapper for Javascript dates and times.

    DateTime.local().setZone('America/New_York').minus({ weeks: 1 }).endOf('day').toISO();

## 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).
- No dependencies.

## Documentation

Read the docs.

## Download

Browser global

Debug

Minified

Exports a global variable called "luxon". Use it like this

    <script src="luxon.js"></script>
    <script>luxon.DateTime.local();</script>

Demo

Node

    npm install luxon

Luxon as a Node.js module

    var luxon = require('luxon');
    luxon.DateTime.local();

AMD

Debug

Minified

Luxon as an AMD module. Use with Require.js, System.js, and so on.

    requirejs(['luxon'], function(luxon) {
      luxon.DateTime.local();
    });

Demo

ES6

Debug

Minified

Luxon as an ES6 module.

    import { DateTime } from 'luxon';
    DateTime.local();

## Contribute

Luxon is distributed under the MIT license. The code is available on Github. Patches welcome.