# System map — moment/luxon

> Canonical page: https://codevetter.com/unpack/luxon/system-map

# System map — 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.

The main product is an embeddable library whose public entrypoint exports temporal types and configuration APIs. Implementation modules separate parsing, calendar conversion, formatting, locale handling, and zone behavior. Runtime state consists of object fields, global defaults, and caches; serialization returns values to the caller. Build tooling produces several JavaScript distributions, while a separate static site supplies documentation and examples.
- src/luxon.js exports VERSION 3.7.2, DateTime, Duration, Interval, Info, Settings, Zone, and four concrete zone classes. — [src/luxon.js#L1-L26](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/luxon.js#L1-L26)
- The package routes imports to build/es6/luxon.mjs and require calls to build/node/luxon.js; src/package.json independently marks source files as ES modules. — [package.json#L11-L17](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/package.json#L11-L17) [src/package.json#L1-L4](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/package.json#L1-L4)
- DateTime coordinates Zone and Locale state, Duration stores unit values and a conversion matrix, and Interval stores two DateTime endpoints. — [src/datetime.js#L554-L619](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/datetime.js#L554-L619) [src/duration.js#L186-L213](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/duration.js#L186-L213) [src/interval.js#L44-L60](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/interval.js#L44-L60)
- Standard parsing uses regex/extractor pairs; custom parsing uses TokenParser; Formatter delegates localized date output through Locale formatter factories. — [src/impl/regexParser.js#L13-L20](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/impl/regexParser.js#L13-L20) [src/impl/tokenParser.js#L439-L450](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/impl/tokenParser.js#L439-L450) [src/impl/formatter.js#L108-L122](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/impl/formatter.js#L108-L122) [src/impl/locale.js#L510-L525](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/impl/locale.js#L510-L525)
- The host supplies time-zone behavior: SystemZone reads Date.getTimezoneOffset, while IANAZone validates names and computes offsets using Intl.DateTimeFormat. — [src/zones/systemZone.js#L28-L49](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/zones/systemZone.js#L28-L49) [src/zones/IANAZone.js#L119-L127](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/zones/IANAZone.js#L119-L127) [src/zones/IANAZone.js#L201-L232](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/zones/IANAZone.js#L201-L232)
- The inspected state boundary is in memory: Settings owns module-level defaults, Locale caches Intl instances, and DateTime exposes JSON/BSON conversion hooks rather than a storage adapter. — [src/settings.js#L10-L17](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/settings.js#L10-L17) [src/impl/locale.js#L9-L51](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/impl/locale.js#L9-L51) [src/datetime.js#L2133-L2146](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/src/datetime.js#L2133-L2146)
- npm build invokes tasks/buildAll.js; buildAll concurrently generates Node, browser CommonJS, ES module, AMD, global, and global-es6 bundles with source maps. — [package.json#L18-L23](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/package.json#L18-L23) [tasks/buildAll.js#L1-L2](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/tasks/buildAll.js#L1-L2) [tasks/build.js#L64-L69](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/tasks/build.js#L64-L69) [tasks/build.js#L125-L174](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/tasks/build.js#L125-L174)
- The static documentation build combines generated API documentation with docs/site copies; benchmarks run ES-module suites, and CI declares build, formatting, coverage-test, and site-generation steps. — [package.json#L24-L33](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/package.json#L24-L33) [benchmarks/package.json#L1-L3](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/benchmarks/package.json#L1-L3) [benchmarks/index.js#L1-L12](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/benchmarks/index.js#L1-L12) [.github/workflows/test.yml#L33-L38](https://github.com/moment/luxon/blob/f427515a38f6a671f8de663e6bcc040ed81f114e/.github/workflows/test.yml#L33-L38)

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)
