Skip to content

This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.

TemporalLike

Defined in: packages/engine/src/temporal/TemporalCalendar.ts:108

The subset of the Temporal namespace the backend uses, as a structural type, so the engine compiles and ships with no Temporal type installed and a host passes whichever implementation it has: globalThis.Temporal on Node 26 or a current browser, or the export of a polyfill such as temporal-polyfill. Both satisfy this shape as they are.

readonly Instant: {
fromEpochMilliseconds: TemporalInstantLike;
};

Defined in: packages/engine/src/temporal/TemporalCalendar.ts:113

fromEpochMilliseconds(epochMilliseconds): TemporalInstantLike;
ParameterType
epochMillisecondsnumber

TemporalInstantLike


readonly Now: {
instant: TemporalInstantLike;
timeZoneId: string;
};

Defined in: packages/engine/src/temporal/TemporalCalendar.ts:109

instant(): TemporalInstantLike;

TemporalInstantLike

timeZoneId(): string;

string


readonly PlainDateTime: {
from: TemporalPlainDateTimeLike;
};

Defined in: packages/engine/src/temporal/TemporalCalendar.ts:116

from(fields, options?): TemporalPlainDateTimeLike;
ParameterType
fieldsTemporalDateTimeFields
options?{ overflow?: "reject" | "constrain"; }
options.overflow?"reject" | "constrain"

TemporalPlainDateTimeLike