Library API
    Preparing search index...

    Function resolveIsoCalendarYear

    • Resolves the calendar year corresponding to an ISO week-numbering year for a specified month and day, testing adjacent calendar-year candidates. Uses expectedDayOfWeek (1=Monday..7=Sunday) to disambiguate when available, and rejects ambiguous dates that match multiple candidate years without weekday disambiguation.

      Parameters

      • targetIsoYear: number

        The ISO week-numbering year

      • month: number

        The 1-indexed calendar month (1..12)

      • day: number

        The 1-indexed calendar day (1..31)

      • OptionalexpectedDayOfWeek: number

        Optional 1-indexed ISO weekday (1=Monday..7=Sunday)

      Returns number | undefined

      The resolved calendar year, or undefined if invalid or ambiguous