Function weekOfMonth

  • The week of this month. There is no official standard for this, but we assume the same rules for the weekNumber: week 1 is the week that has the 4th day of the month in it

    Parameters

    • year: number

      The year

    • month: number

      The month [1-12]

    • day: number

      The day [1-31]

    Returns number

    Week number [1-5]

    Throws

    timezonecomplete.Argument.Year for invalid year (non-integer)

    Throws

    timezonecomplete.Argument.Month for invalid month

    Throws

    timezonecomplete.Argument.Day for invalid day of month

Generated using TypeDoc