Different representations

Accessors

  • get iso_datetime_string(): string
  • The datetime as a normalized ISO datetime string, ensuring equivalent datetimes are given equivalent datetime string representations.

    Returns string

  • get temporal(): any
  • The date as a Temporal.PlainDateTime or Temporal.Instant

    If datetime.fields.utc_offset is null, a PlainDateTime will be returned, otherwise an Instant will be returned

    Warning

    At time of writing, Temporal is still Stage 3!

    If you are using this in an environment where Temporal is not in globalThis, it will just crash.

    Returns any