Library API
    Preparing search index...

    Function getIsoWeek

    • Returns numeric week and week-year fields when both are supplied; otherwise computes them from the Gregorian year, month, and day using standard ISO 8601 rules. Pure integer arithmetic — zero Date allocations.

      Parameters

      • z: {
            day: number;
            month: number;
            weekOfYear?: number;
            year: number;
            yearOfWeek?: number;
        }

      Returns { weekOfYear: number; yearOfWeek: number }