# Feature catalog — moment/luxon

> Canonical page: https://codevetter.com/unpack/luxon/feature-catalog

# Feature catalog — moment/luxon

Scanned commit f427515a38f6a671f8de663e6bcc040ed81f114e (2026-08-09). Generated by codevetter codevetter 1.15.0 on 2026-10-02.

Source inspection; upstream code and tests were not executed.

Luxon's user-facing surface is primarily its JavaScript API. DateTime handles construction, parsing, transformations, formatting, and interoperability; Duration models quantities, and Interval models bounded spans. Info exposes locale and zone metadata, while Settings controls defaults and invalid-value policy. The companion site provides searchable guides, API documentation, runnable examples, and a persistent theme preference.
- DateTime.now reads the configured clock; fromObject accepts Gregorian, ordinal, ISO-week, and locale-week fields, rejecting conflicting representations and out-of-range values. — [src/datetime.js#L631-L633](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/datetime.js#L631-L633) [src/datetime.js#L804-L883](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/datetime.js#L804-L883)
- DateTime supports ISO, RFC 2822, HTTP, SQL, and explicit custom-format parsing; custom parsing also has explain and reusable-parser APIs. — [src/datetime.js#L933-L1009](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/datetime.js#L933-L1009) [src/datetime.js#L1040-L1044](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/datetime.js#L1040-L1044) [src/datetime.js#L2363-L2399](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/datetime.js#L2363-L2399) [src/datetime.js#L2412-L2445](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/datetime.js#L2412-L2445)
- DateTime formats tokens, localized strings, and localized parts; ISO output supports precision and offset options, while JSON, BSON, numeric timestamps, and native Date provide interoperability. — [src/datetime.js#L1830-L1877](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/datetime.js#L1830-L1877) [src/datetime.js#L1897-L1917](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/datetime.js#L1897-L1917) [src/datetime.js#L2113-L2174](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/datetime.js#L2113-L2174)
- DateTime offers zone conversion with optional wall-time preservation, calendar-aware plus/minus, endOf, diff, and relative or relative-calendar descriptions. — [src/datetime.js#L1592-L1607](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/datetime.js#L1592-L1607) [src/datetime.js#L1714-L1729](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/datetime.js#L1714-L1729) [src/datetime.js#L1808-L1813](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/datetime.js#L1808-L1813) [src/datetime.js#L2194-L2327](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/datetime.js#L2194-L2327)
- Duration parses ISO quantities and ISO times, performs unit conversion with casual/longterm/custom matrices, and emits human-readable, object, ISO, JSON, or millisecond representations. — [src/duration.js#L186-L213](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/duration.js#L186-L213) [src/duration.js#L308-L339](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/duration.js#L308-L339) [src/duration.js#L471-L540](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/duration.js#L471-L540) [src/duration.js#L582-L613](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/duration.js#L582-L613)
- Interval represents half-open spans, accepts endpoint or duration-based construction, supports containment and splitting, and exposes intersection, union, merge, xor, difference, and duration conversion. — [src/interval.js#L28-L38](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/interval.js#L28-L38) [src/interval.js#L89-L139](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/interval.js#L89-L139) [src/interval.js#L327-L406](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/interval.js#L327-L406) [src/interval.js#L677-L681](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/interval.js#L677-L681)
- Info exposes localized date labels, IANA-zone validation, DST detection, week-start/weekend metadata, and relative/localeWeek feature detection; Settings supplies defaults and throwOnInvalid. — [src/info.js#L10-L30](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/info.js#L10-L30) [src/info.js#L58-L83](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/info.js#L58-L83) [src/info.js#L189-L203](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/info.js#L189-L203) [src/settings.js#L118-L168](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/settings.js#L118-L168)
- The documentation site enables search and sidebar guides, the demo renders API examples, and its dark-theme plugin remembers the selected theme in localStorage. — [site/index.html#L28-L42](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/site/index.html#L28-L42) [site/docs/_sidebar.md#L1-L15](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/site/docs/_sidebar.md#L1-L15) [site/demo/demo.js#L40-L85](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/site/demo/demo.js#L40-L85) [site/plugins/dark-theme-toggle.js#L3-L23](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/site/plugins/dark-theme-toggle.js#L3-L23)

Every claim links to its cited files at the pinned commit. Citations identify source evidence; they do not establish runtime correctness. Independent CodeVetter scan — not reviewed by upstream maintainers.

## Public product links

- [CodeVetter](https://codevetter.com/)
- [Download](https://codevetter.com/download)
- [Documentation](https://codevetter.com/docs/)
- [Source](https://github.com/Codevetter/codevetter)
