...

Luxon

A library for working with dates and times in JS
github-icon
GitHub
16kstar-icon
Created 10 years ago, last commit 2 days ago
243 contributors
1.27k commits
Stars added on GitHub, month by month
N/A
7
8
9
10
11
12
1
2
3
4
5
6
2024
2025
Stars added on GitHub, per day, on average
Yesterday
+3star-icon
Last week
+1.4
star-icon /day
Last month
+1.9
star-icon /day
Last 12 months
+2.4
star-icon /day
npmPackage on NPM
Monthly downloads on NPM
7
8
9
10
11
12
1
2
3
4
5
6
2024
2025
No dependencies
README

Luxon

MIT License Build Status NPM version Coverage Status PRs welcome

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

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

Upgrading to 3.0

Guide

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).

Download/install

Download/install instructions

Documentation

Development

See contributing.

Phasers to stun