Back to Luxon

Home

docs/home.md

3.7.21023 B
Original Source

Luxon

Luxon is a library for dealing with dates and times in JavaScript.

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

Features

  • A nice API for working with datetimes
  • Interval support (from time x to time y)
  • Duration support (14 days, 5 minutes, 33 seconds)
  • Parsing and Formatting datetimes, intervals, and durations
  • Internationalization of strings using the Intl API
  • Detailed and unambiguous math operations
  • Built-in handling of time zones
  • Partial support for multiple calendar systems

For more, see the docs on the left, including the api docs

Getting started

Logo by John Dalziel