since 1970-01-01T00:00:00Z.
OptionaloffsetMinutes: number = 0
the offset it is written at, -1439 to 1439; 0, UTC, when not given.
the same instant, offset dropped (see class doc); lossy beyond millisecond precision.
StaticfromOptionaloffsetMinutes: number = 0
the offset to write it at; UTC when
not given — a plain Date has no offset of its own.
DXN
datetime(@datetime "...") — an instant with the offset it was written at, to the nanosecond (DXN.md§1.3). DXN 0.2'stimestampis this type at offset 0, writtenZ(Jan, 2026-10-20: one type, not two). Stored as{ epochNanoseconds, offsetMinutes }, mirroring.dxnb's own wire shape (DXN.md§2.2) directly.Close native fit: JS
Dateis a UTC epoch-ms instant, sotoDate()/fromDate()keep the instant to the millisecond —Dateholds nothing finer — and drop the offset, whichDatehas no concept of; a nativeDategiven to the encoder is a datetime in UTC.