Luxon是一个用JavaScript处理日期和时间的实验库
Luxon是一个用JavaScript处理日期和时间的实验库
JavaScript 日期处理库
共9535Star
详细介绍
Luxon
Luxon is an experimental library for working with dates and times in Javascript.
DateTime.local().setZone('America/New_York').minus({ weeks: 1 }).endOf('day').toISO();
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
Documentation
Development
See contributing.