@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

        true for the Israel schedule

      • Optionalwantarray: false

        return an array of 0 or more readings instead of a single reading (default false)

      • Optionallanguage: string

        language for names and summary (default 'en')

      Returns LeyningWeekday | Leyning | undefined

      a single reading (or undefined) by default; when wantarray is true, an array of 0 or more readings for the date

    • 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

        true for the Israel schedule

      • wantarray: true

        return an array of 0 or more readings instead of a single reading (default false)

      • Optionallanguage: string

        language for names and summary (default 'en')

      Returns (LeyningWeekday | Leyning)[]

      a single reading (or undefined) by default; when wantarray is true, an array of 0 or more readings for the date