@hebcal/hdate
    Preparing search index...

    Function monthsInYear

    • Number of months in this Hebrew year (either 12 or 13 depending on leap year).

      Because Adar II is the last month of a leap year and Adar the last month of a common year, this doubles as "the number of the final month", which is how the anniversary rules identify Adar.

      Parameters

      • year: number

        Hebrew year

      Returns number

      12 or 13

      monthsInYear(5783); // 12
      monthsInYear(5784); // 13