Circle V2 API Docs
    Preparing search index...

    Function timeZoneAbbreviation

    • Short zone name for an instant — "EST", "PDT", "GMT+5:30". Resolved per-instant so the label tracks daylight saving rather than asserting one abbreviation year-round.

      Comes from Intl because date-fns cannot produce an abbreviation: it ships no locale zone-name data, so its z/zzz tokens render "GMT-5" and zzzz renders "GMT-05:00".

      Returns "" for a zone Intl declines to name, so callers can omit the label rather than print an empty suffix.

      Parameters

      • date: Date
      • timeZone: string

      Returns string