Skip to main content

Crate formatjs_temporal

Crate formatjs_temporal 

Source

Modules§

calendar
Allocation-free numeric calendar math. Callers own Temporal coercion.
table_calendar
Borrowed ICU calendar tables. Loading and storage belong to the embedder.

Structs§

CalendarRegistry
Arithmetic calendars plus validated caller-owned table providers.
DateFields
DateTimeFields
Duration
Fields follow years through nanoseconds; storage follows Number-representable integers.
DurationFields
Partial duration fields, preserving unbalanced units.
FixedOffset
FormattedDate
FormattedDateTime
FormattedDuration
FormattedInstant
FormattedMonthDay
FormattedTime
FormattedYearMonth
FormattedZonedDateTime
FutureRule
Instant
Exact nanoseconds since the Unix epoch, bounded to Temporal’s instant range.
IsoDateTime
NamedTimeZone
Attach IANA identity to provider data. The provider must describe this zone.
NamedTimeZoneIdentifier
Now
OffsetTransition
PlainDate
PlainDateTime
PlainMonthDay
PlainTime
PlainYearMonth
ResolvedTimeZone
TemporalContext
Shared data views for native Temporal entry points. Values retain their providers.
TimeFields
Supplied clock fields; omitted fields retain their original values.
TimeZoneRecord
Validated primary IANA record. UTC is supplied by the registry itself.
TimeZoneRegistry
Immutable borrowed records. Lookup never substitutes UTC for missing data.
TransitionZone
Borrowed explicit transitions plus an optional recurring TZif footer rule.
ZonedDateTime
ZonedFields
ZonedFormatOptions
ZonedParseOptions
ZonedWithOptions

Enums§

CalendarName
CalendarRef
One provider type for registries containing all sixteen calendars.
DateTimeUnit
Disambiguation
Error
OffsetInput
String precision controls historical offset matching; field bags use Exact.
OffsetOption
Overflow
Precision
RoundingMode
TimeUnit
TimeZoneName
TransitionDirection
TransitionRule
YearMonthUnit
ZonedUnit

Constants§

MAX_DURATION_NANOSECONDS
MAX_EPOCH_NANOSECONDS
NANOSECONDS_PER_DAY

Traits§

CalendarProvider
Validated arithmetic engines or immutable borrowed calendar tables.
SystemClock
Host wall clock, separate from monotonic performance timers.
TimeZone
Offsets are exact nanoseconds; visit every offset represented by this zone.

Functions§

named_time_zone_identifier
round_duration_nanoseconds