luxon

Immutable date wrapper

MIT 151 个版本
安装
npm install luxon
yarn add luxon
pnpm add luxon
bun add luxon
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

版本列表
3.8.0-alpha.1 2025-08-11
3.7.2 2025-09-05
3.7.1 2025-07-09
3.7.0 2025-07-09
3.6.1 2025-03-31
3.6.0 2025-03-25
3.5.0 2024-08-03
3.4.4 2023-11-12
3.4.3 2023-09-05
3.4.2 2023-08-26
3.4.1 2023-08-22
3.4.0 2023-08-09
3.3.0 2023-03-04
3.2.1 2023-01-04
3.2.0 2022-12-29
3.1.1 2022-11-29
3.1.0 2022-10-31
3.0.4 2022-09-24
3.0.3 2022-08-29
3.0.2 2022-08-28
3.0.1 2022-07-09
3.0.0 2022-07-09
2.5.2 2023-01-04
2.5.1 2023-01-04
2.5.0 2022-07-09
2.4.0 2022-05-09
2.3.2 2022-04-17
2.3.1 2022-02-23
2.3.0 2022-01-02
2.2.0 2021-12-10
2.1.1 2021-11-08
2.1.0 2021-11-07
2.0.2 2021-08-08
2.0.1 2021-07-11
2.0.0 2021-07-09
1.28.1 2023-01-04
1.28.0 2021-07-09
1.27.0 2021-05-14
1.26.0 2021-02-13
1.25.0 2020-08-23
1.24.1 2020-05-04
1.24.0 2020-05-03
1.23.0 2020-04-02
1.22.2 2020-03-25
1.22.0 2020-01-26
1.21.3 2019-11-27
1.21.2 2019-11-18
1.21.1 2019-11-03
1.21.0 2019-10-30
1.20.0 2019-10-29
1.19.3 2019-09-24
1.19.2 2019-09-22
1.19.1 2019-09-22
1.19.0 2019-09-22
1.18.2 2019-09-22
1.18.1 2019-09-22
1.18.0 2019-09-19
1.17.3 2019-09-14
1.17.2 2019-07-23
1.17.1 2019-07-11
1.17.0 2019-07-11
1.16.1 2019-07-03
1.16.0 2019-06-01
1.15.0 2019-05-19
1.14.0 2019-05-19
1.13.3 2019-05-18
1.13.2 2019-05-09
1.13.1 2019-05-07
1.13.0 2019-05-05
1.12.1 2019-04-06
1.12.0 2019-03-22
1.11.4 2019-03-03
1.11.3 2019-02-18
1.11.2 2019-02-11
1.11.1 2019-02-05
1.11.0 2019-02-03
1.10.0 2019-01-11
1.9.0 2018-12-31
1.8.3 2018-12-20
1.8.2 2018-11-30
1.8.1 2018-11-27
1.8.0 2018-11-23
1.7.1 2018-11-17
1.7.0 2018-11-17
1.6.2 2018-11-10
1.6.1 2018-11-10
1.6.0 2018-11-10
1.5.0 2018-11-04
1.4.6 2018-11-03
1.4.5 2018-10-31
1.4.4 2018-10-19
1.4.3 2018-10-04
1.4.2 2018-10-01
1.4.1 2018-09-28
1.4.0 2018-09-28
1.3.3 2018-07-30
1.3.2 2018-07-19
1.3.1 2018-07-02
1.3.0 2018-06-17
1.2.1 2018-05-19
1.2.0 2018-04-25
1.1.0 2018-04-21
1.0.0 2018-03-24
0.5.8 2018-03-15
0.5.7 2018-03-15
0.5.6 2018-03-12
0.5.5 2018-03-11
0.5.4 2018-03-10
0.5.3 2018-02-20
0.5.2 2018-02-18
0.5.1 2018-02-18
0.5.0 2018-02-16
0.4.0 2018-01-29
0.3.1 2018-01-14
0.3.0 2018-01-11
0.2.12 2018-01-06
0.2.11 2017-12-28
0.2.10 2017-12-26
0.2.9 2017-12-14
0.2.8 2017-12-13
0.2.7 2017-12-07
0.2.6 2017-12-06
0.2.5 2017-12-03
0.2.4 2017-12-01
0.2.3 2017-11-27
0.2.2 2017-11-25
0.2.1 2017-11-24
0.2.0 2017-11-23
0.1.0 2017-11-22
0.0.22 2017-11-20
0.0.21 2017-11-20
0.0.20 2017-11-19
0.0.19 2017-11-16
0.0.18 2017-11-16
0.0.17 2017-11-12
0.0.16 2017-11-04
0.0.15 2017-11-04
0.0.14 2017-11-03
0.0.13 2017-11-03
0.0.12 2017-11-01
0.0.11 2017-11-01
0.0.10 2017-10-29
0.0.9 2017-10-27
0.0.8 2017-10-27
0.0.7 2017-10-26
0.0.6 2017-10-23
0.0.5 2017-10-18
0.0.4 2017-10-12
0.0.3 2017-09-14
0.0.2 2017-09-14
0.0.1 2017-05-24