Library API
    Preparing search index...

    Function normalizeUtcOffset

    • Converts informal UTC offset strings into the ±HH:MM format required by Temporal. Accepts forms like 'UTC+8', 'UTC-9', 'UTC+08:00', 'UTC-05:30'. Returns the input unchanged if it does not match the UTC± pattern.

      Parameters

      • zone: string

        The informal offset string

      Returns string

      The normalized offset string