Skip to main content

Module core

Module core 

Source
Expand description

The engine: types, JS Date and regex emulation, configuration and the parse loop.

Modulesยง

chrono
upstream chrono.ts: the Parser and Refiner abstractions and the parse loop.
components
ParsingComponents (upstream results.ts): known and implied date/time components.
configuration
Configurations as ordered slots named after upstream classes, resolved through the auto-generated registry (see build.rs).
context
upstream ParsingContext and ParsingOption.
js_date
The JavaScript Date operations chrono-node uses, emulated exactly.
json
The shared JSON shape of requests and results (see harness/lib/serialize.js and tests/golden/README.md). Used by the golden runner and the chrono-rs-json CLI.
reference
upstream ReferenceWithTimezone and ParsingReference.
regex
JavaScript regular expressions on top of fancy-regex.
registry
The auto-generated registry of ported parsers and refiners (see build.rs).
result
upstream ParsingResult.
timezone
upstream timezone.ts: time zone abbreviations and toTimezoneOffset.
utils
upstream src/utils/.