Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

luxon

> 编程语言
Open source

⏱ A library for working with dates and times in JS

16.4K stars0 likes2 views
WebsiteGitHub

About

⏱ A library for working with dates and times in JS

Luxon

MIT License Build Status NPM version Coverage Status PRs welcome

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

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

🚀 The road to Luxon 4.0

Please read about and share your feedback on the plans for the next major version of Luxon!

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

  • General documentation
  • API docs
  • Quick tour
  • For Moment users
  • Why does Luxon exist?
  • A quick demo

Development

See contributing.

Phasers to stun

Issues· 192 open

View all issuesOpen on GitHub
  • #923

    Constructing IANAZones has huge memory impact on nodejs

    issue: performanceUpdated Sep 21, 2026
  • #1808

    Interval#isEmpty() throws TypeError on an Invalid interval instead of returning false (unlike its siblings)

    Updated Sep 21, 2026
  • #1807

    Duration.fromISO("P"/"PT"/"-P") parses as a valid zero duration, causing Interval overlaps()/merge() to silently ignore the interval

    Updated Sep 21, 2026
  • #1806

    fullwide/hanidec numberingSystem: digit matcher and decoder tables have drifted apart, causing silent data corruption

    Updated Sep 21, 2026
  • #1805

    Interval#splitBy / #divideEqually hangs forever on a negative duration (still reproducible on 3.7.2, distinct from #186)

    Updated Sep 21, 2026
  • #1802

    Share `Locale` instances between DateTimes with the same configuration

    Updated Sep 15, 2026
  • #1545

    `Duration.toHuman` throws RangeError when Duration uses `quarters`

    Updated Sep 4, 2026
  • #296

    Add Duration.fromFormat(str, fmt)

    issue: enhancementUpdated Aug 17, 2026
  • #1366

    `toFormat` with unknown locale defaults to system locale instead of Luxon settings `defaultLocale`

    issue: enhancementup for grabsv4Updated May 19, 2026
  • #1774

    Proposal: Modernize the landing page and docs UI

    v4Updated Apr 30, 2026

> Tags

JavaScriptdatesdatetimeintltimes

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言