@hebcal/core
    Preparing search index...

    Function parshaYear

    • Calculates the weekly Torah Reading (Parashat HaShavua) on Saturdays for an entire Hebrew year.

      Saturdays on which a Yom Tov reading displaces the regular parsha (e.g. Shabbat Chol ha-Moed Pesach/Sukkot, Yom Kippur on Shabbat) are skipped — for those use getHolidaysOnDate or Sedra.lookup.

      Parameters

      • year: number

        Hebrew year

      • il: boolean

        Israel (false for Diaspora)

      Returns ParshaEvent[]

      an array of ParshaEvent occurring on Saturdays that contain a regular (non-holiday) Parashat HaShavua

      import {parshaYear} from '@hebcal/core';
      const events = parshaYear(5784, false);
      events[0].render('en'); // 'Parashat Vayeilech'
      events[0].getDate().toString(); // '4 Tishrei 5784'