Library API
    Preparing search index...

    Function getTemporalIds

    • Normalizes TimeZone and Calendar inputs into a [timeZoneId, calendarId] tuple. Accepts either (tz, cal) strings or a single ZonedDateTime-like object. Supports both spec-final (flat) and V8 harmony (nested) Temporal structures.

      Parameters

      • tzOrZdt: ZonedDateTime

        The TimeZone string, Calendar string, or ZonedDateTime object

      • Optionalcal: CalendarLike

        The optional Calendar string if tzOrZdt is a timezone

      Returns [string, string]

      A tuple of [timeZoneId, calendarId]

    • Normalizes TimeZone and Calendar inputs into a [timeZoneId, calendarId] tuple. Accepts either (tz, cal) strings or a single ZonedDateTime-like object. Supports both spec-final (flat) and V8 harmony (nested) Temporal structures.

      Parameters

      • tzOrZdt: TimeZoneLike

        The TimeZone string, Calendar string, or ZonedDateTime object

      • Optionalcal: CalendarLike

        The optional Calendar string if tzOrZdt is a timezone

      Returns [string, string]

      A tuple of [timeZoneId, calendarId]