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.
Properties
Section titled “Properties”Instant
Section titled “Instant”readonly Instant: { fromEpochMilliseconds: TemporalInstantLike;};Defined in: packages/engine/src/temporal/TemporalCalendar.ts:113
fromEpochMilliseconds()
Section titled “fromEpochMilliseconds()”fromEpochMilliseconds(epochMilliseconds): TemporalInstantLike;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
epochMilliseconds | number |
Returns
Section titled “Returns”readonly Now: { instant: TemporalInstantLike; timeZoneId: string;};Defined in: packages/engine/src/temporal/TemporalCalendar.ts:109
instant()
Section titled “instant()”instant(): TemporalInstantLike;Returns
Section titled “Returns”timeZoneId()
Section titled “timeZoneId()”timeZoneId(): string;Returns
Section titled “Returns”string
PlainDateTime
Section titled “PlainDateTime”readonly PlainDateTime: { from: TemporalPlainDateTimeLike;};Defined in: packages/engine/src/temporal/TemporalCalendar.ts:116
from()
Section titled “from()”from(fields, options?): TemporalPlainDateTimeLike;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
fields | TemporalDateTimeFields |
options? | { overflow?: "reject" | "constrain"; } |
options.overflow? | "reject" | "constrain" |