@hebcal/leyning
    Preparing search index...

    Function getLeyningOnDate

    • Looks up leyning for a regular Shabbat, Monday/Thursday weekday or holiday.

      If hdate coincides with a holiday that has Torah reading, returns the reading for that day (see getLeyningForHoliday)

      Otherwise, if hdate is a Saturday, returns getLeyningForParshaHaShavua

      Otherwise, if hdate is a Monday or Thursday, returns Leyning for the Parashat haShavua, containing only the weekday aliyot (no fullkriyah).

      Otherwise, returns undefined.

      Parameters

      • hdate: HDate

        Hebrew Date

      • il: boolean

        in Israel

      • Optionalwantarray: false

        to return an array of 0 or more readings

      Returns undefined | LeyningWeekday | Leyning

    • Looks up leyning for a regular Shabbat, Monday/Thursday weekday or holiday.

      If hdate coincides with a holiday that has Torah reading, returns the reading for that day (see getLeyningForHoliday)

      Otherwise, if hdate is a Saturday, returns getLeyningForParshaHaShavua

      Otherwise, if hdate is a Monday or Thursday, returns Leyning for the Parashat haShavua, containing only the weekday aliyot (no fullkriyah).

      Otherwise, returns undefined.

      Parameters

      • hdate: HDate

        Hebrew Date

      • il: boolean

        in Israel

      • wantarray: true

        to return an array of 0 or more readings

      Returns (LeyningWeekday | Leyning)[]