Library API
    Preparing search index...

    Function toZonedDateTime

    • Creates a Temporal.ZonedDateTime from a property-bag or ISO string. Automatically injects the specified timezone if missing from the string.

      Parameters

      • bag: ZonedDateTimeLike

        The property bag or ISO string to convert

      • tz: TimeZoneLike = 'UTC'

        The fallback timezone (default: 'UTC')

      Returns ZonedDateTime

      The created Temporal.ZonedDateTime