Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moment/luxon
⏱ A library for working with dates and times in JS
https://github.com/moment/luxon
dates datetime intl times timezones
Last synced: 11 days ago
JSON representation
⏱ A library for working with dates and times in JS
- Host: GitHub
- URL: https://github.com/moment/luxon
- Owner: moment
- License: mit
- Created: 2015-11-30T12:48:48.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-03-31T00:24:11.000Z (7 months ago)
- Last Synced: 2024-04-14T09:06:06.955Z (7 months ago)
- Topics: dates, datetime, intl, times, timezones
- Language: JavaScript
- Homepage: https://moment.github.io/luxon
- Size: 93 MB
- Stars: 14,833
- Watchers: 106
- Forks: 721
- Open Issues: 174
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-frontend - luxon - Library for working with dates and times. ![](https://img.shields.io/github/stars/moment/luxon.svg?style=social&label=Star) (Repository / Date & Time)
- awesome - moment/luxon - ⏱ A library for working with dates and times in JS (JavaScript)
- awesome - moment/luxon - ⏱ A library for working with dates and times in JS (JavaScript)
- awesome-nodejs-cn - Luxon - 用于处理日期和时间的库 (包 / 日期)
- awesome-nodejs - luxon - Library for working with dates and times. ![](https://img.shields.io/github/stars/moment/luxon.svg?style=social&label=Star) (Repository / Date & Time)
- studyLogs - luxon - 一个时间插件,优雅到无法想象,你用过就知道. (Uncategorized / Uncategorized)
- awesome-nodejs-cn - Luxon - **star:15009** 用于处理日期和时间的库 ![star > 2000][Awesome] (包 / 日期)
- awesome-github-star - luxon
- awesome-nodejs - Luxon - Library for working with dates and times. (Packages / Date)
- awesome-nodejs - luxon - A library for working with dates and times in JS - ★ 7204 (Date)
- awesome-node - Luxon - Library for working with dates and times. (Packages / Date)
- awesome-nodejs-cn - Luxon - 用于处理日期和时间的库. (目录 / 日期处理)
- awesome-nodejs - Luxon - 一个用于在JS中处理日期和时间的库 (Uncategorized / Uncategorized)
- awesome-inspiration - Luxon
- awesome - luxon - ⏱ A library for working with dates and times in JS (JavaScript)
README
# Luxon
[![MIT License][license-image]][license] [![Build Status][github-action-image]][github-action-url] [![NPM version][npm-version-image]][npm-url] [![Coverage Status][test-coverage-image]][test-coverage-url] [![PRs welcome][contributing-image]][contributing-url]
Luxon is a library for working with dates and times in JavaScript.
```js
DateTime.now().setZone("America/New_York").minus({ weeks: 1 }).endOf("day").toISO();
```## Upgrading to 3.0
[Guide](https://moment.github.io/luxon/#upgrading)
## 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](https://moment.github.io/luxon/#/install)
## Documentation
* [General documentation](https://moment.github.io/luxon/#/?id=luxon)
* [API docs](https://moment.github.io/luxon/api-docs/index.html)
* [Quick tour](https://moment.github.io/luxon/#/tour)
* [For Moment users](https://moment.github.io/luxon/#/moment)
* [Why does Luxon exist?](https://moment.github.io/luxon/#/why)
* [A quick demo](https://moment.github.io/luxon/demo/global.html)## Development
See [contributing](CONTRIBUTING.md).
![Phasers to stun][phasers-image]
[license-image]: https://img.shields.io/badge/license-MIT-blue.svg
[license]: LICENSE.md[github-action-image]: https://github.com/moment/luxon/actions/workflows/test.yml/badge.svg
[github-action-url]: https://github.com/moment/luxon/actions/workflows/test.yml[npm-url]: https://npmjs.org/package/luxon
[npm-version-image]: https://badge.fury.io/js/luxon.svg[test-coverage-url]: https://codecov.io/gh/moment/luxon
[test-coverage-image]: https://codecov.io/gh/moment/luxon/branch/master/graph/badge.svg[contributing-url]: https://github.com/moment/luxon/blob/master/CONTRIBUTING.md
[contributing-image]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg[phasers-image]: https://img.shields.io/badge/phasers-stun-brightgreen.svg