Library API
    Preparing search index...

    Function getOffsets

    • Gets the timezone offsets for January 1 and July 1 of a given year.

      Parameters

      • timeZone: string

        The IANA timezone identifier

      • year: number = 2024

        The year for which to calculate the offsets; defaults to 2024

      Returns { jan: number; jul: number }

      An object containing January and July offsets in nanoseconds