@hebcal/core
    Preparing search index...

    Class OmerEvent

    Represents one of the 49 days of counting the Omer between Pesach and Shavuot (16 Nisan through 5 Sivan).

    Each day has an associated Sefirah pairing (e.g. Chesed shebiGevurah), a word from Psalm 67 (Lamnatzeach), a letter from verse 5 of Psalm 67, and a word/acrostic from the Ana BeKoach prayer — all accessible via the methods on this class.

    import {OmerEvent, HDate, months} from '@hebcal/core';
    const ev = new OmerEvent(new HDate(16, months.NISAN, 5784), 1);
    ev.render('en'); // '1st day of the Omer'
    ev.render('he'); // 'א׳ בָּעוֹמֶר'
    ev.sefira('translit'); // 'Chesed shebChesed'
    ev.getTodayIs('en'); // 'Today is 1 day of the Omer'

    Hierarchy (View Summary)

    Index

    Constructors

    • Constructs an Omer event for a given day (1–49).

      Throws RangeError if omerDay is outside 1–49.

      Parameters

      • date: HDate

        Hebrew date this Omer day is counted on (the evening of)

      • omerDay: number

        day of the Omer, 1 through 49

      Returns OmerEvent

    Properties

    alarm?: string | boolean | Date

    Alarms are used by iCalendar feeds

    date: HDate

    Hebrew date of this event

    desc: string

    Untranslated title of this event. Note that these description strings are always in English and will remain stable across releases. To get the title of the event in another language, use the render() method.

    emoji?: string

    Optional emoji character such as ✡️, 🕯️, 🕎, 🕍, 🌒

    mask: number

    Bitmask of optional event flags. See flags

    memo?: string

    Optional longer description or memo text

    omer: number

    Methods

    • Returns a simplified (untranslated) description for this event, suitable for grouping related events under a single name.

      For example, HolidayEvent strips qualifiers so that "Erev Pesach""Pesach" and "Sukkot III (CH''M)""Sukkot". For many events the basename and the event description are identical.

      Returns string

      import {HolidayEvent, HDate, months, flags} from '@hebcal/core';
      const ev = new HolidayEvent(
      new HDate(14, months.NISAN, 5784), 'Erev Pesach', flags.EREV);
      ev.getDesc(); // 'Erev Pesach'
      ev.basename(); // 'Pesach'
    • Returns the word from the Ana BeKoach prayer (אָנָּא בְּכֹחַ) corresponding to this Omer day. Ana BeKoach is a 42-word Kabbalistic prayer whose initial letters spell out the 42-letter name of God. The prayer has 7 verses of 6 words each; the 7th entry of each group is the abbreviation of the acrostic letters for that verse (e.g. אב״ג ית״ץ for verse 1). Together the 49 entries (7 verses × 7 entries) align with the 49 days of the Omer, connecting each day to one of the lower seven Sefirot within a Sefirah.

      Returns string

      a Hebrew word or verse-abbreviation string from Ana BeKoach

      const ev = new OmerEvent(new HDate(16, 'Nisan', 5785), 1);
      ev.getAnaBekoachWord(); // 'אָנָּא' (day 1, first word of verse 1)
      const ev = new OmerEvent(new HDate(22, 'Nisan', 5785), 7);
      ev.getAnaBekoachWord(); // 'אב״ג ית״ץ' (day 7, acrostic abbreviation for verse 1)
      const ev = new OmerEvent(new HDate(3, 'Sivan', 5785), 49);
      ev.getAnaBekoachWord(); // 'שק״ו צי״ת' (day 49, acrostic abbreviation for verse 7)
    • Returns an array of category strings classifying this event, derived from its flags bitmask. The first element is the broad category (e.g. 'holiday', 'roshchodesh', 'parashat', 'omer'), followed by zero or more refinements (e.g. 'major', 'minor', 'fast').

      Returns ['unknown'] if no flag maps to a known category.

      Returns string[]

      import {Event, HDate, flags} from '@hebcal/core';
      new Event(new HDate(10, 'Tishrei', 5784), 'Yom Kippur', flags.MAJOR_FAST)
      .getCategories(); // ['holiday', 'major', 'fast']
      new Event(new HDate(1, 'Shvat', 5784), 'Rosh Chodesh Sh\'vat', flags.ROSH_CHODESH)
      .getCategories(); // ['roshchodesh']
    • Untranslated title of this event. Note that these description strings are always in English and will remain stable across releases. To get the title of the event in another language, use the render() method.

      Returns string

    • Returns an emoji number symbol with a circle, for example from the “Enclosed CJK Letters and Months” block of the Unicode standard

      Returns string

      a single Unicode character from through

    • Returns the letter from verse 5 of Psalm 67 corresponding to this Omer day. Verse 5 (יִשְׂמְחוּ וִירַנְּנוּ לְאֻמִּים…) contains exactly 49 letters, one for each day of the Omer, and is used as a Kabbalistic meditation during the counting.

      Returns string

      a single Hebrew letter from verse 5 of Psalm 67

      const ev = new OmerEvent(new HDate(16, 'Nisan', 5785), 1);
      ev.getLamnatzeachLetter(); // 'י' (day 1, first letter of verse 5)
      const ev = new OmerEvent(new HDate(3, 'Sivan', 5785), 49);
      ev.getLamnatzeachLetter(); // 'ה' (day 49, last letter of verse 5)
    • Returns the word from Psalm 67 (לַמְנַצֵּחַ, "Lamnatzeach") corresponding to this Omer day. Psalm 67 contains 49 words (excluding its opening verse), one for each day of the Omer. The words are taken from verses 2–8, split on spaces and maqef (־).

      Returns string

      a Hebrew word from Psalm 67

      const ev = new OmerEvent(new HDate(16, 'Nisan', 5785), 1);
      ev.getLamnatzeachWord(); // 'אֱלֹהִים' (day 1, first word of verse 2)
      const ev = new OmerEvent(new HDate(3, 'Sivan', 5785), 49);
      ev.getLamnatzeachWord(); // 'אָרֶץ' (day 49, last word of verse 8)
    • Returns a sentence with that evening's omer count

      Parameters

      • locale: string

      Returns string

      a string such as Today is 10 days, which is 1 week and 3 days of the Omer or הַיוֹם עֲשָׂרָה יָמִים, שְׁהֵם שָׁבוּעַ אֶחָד וְשְׁלוֹשָׁה יָמִים לָעוֹמֶר

    • Is this event observed in Israel/Diaspora?

      Parameters

      • il: boolean

      Returns boolean

      const ev1 = new Event(new HDate(7, 'Sivan', 5749), 'Shavuot II', flags.CHAG | flags.CHUL_ONLY);
      ev1.observedIn(false); // true
      ev1.observedIn(true); // false
      const ev2 = new Event(new HDate(26, 'Kislev', 5749), 'Chanukah: 3 Candles', 0);
      ev2.observedIn(false); // true
      ev2.observedIn(true); // true
    • Is this event observed in the Diaspora?

      Returns boolean

      const ev1 = new Event(new HDate(7, 'Sivan', 5749), 'Shavuot II', flags.CHAG | flags.CHUL_ONLY);
      ev1.observedInDiaspora(); // true
      const ev2 = new Event(new HDate(26, 'Kislev', 5749), 'Chanukah: 3 Candles', 0);
      ev2.observedInDiaspora(); // true
    • Is this event observed in Israel?

      Returns boolean

      const ev1 = new Event(new HDate(7, 'Sivan', 5749), 'Shavuot II', flags.CHAG | flags.CHUL_ONLY);
      ev1.observedInIsrael(); // false
      const ev2 = new Event(new HDate(26, 'Kislev', 5749), 'Chanukah: 3 Candles', 0);
      ev2.observedInIsrael(); // true
    • Parameters

      • Optionallocale: string

        Optional locale name (defaults to empty locale)

      Returns string

    • Returns translation of "Omer day 22" without ordinal numbers.

      Parameters

      • Optionallocale: string

        Optional locale name (defaults to empty locale)

      Returns string

    • Returns the Sefirah pairing associated with this Omer day — one of the seven lower Sefirot within another, calculated as day-within-week of week-within-cycle. For example, on day 8 (week 2, day 1):

      • חֶֽסֶד שֶׁבִּגְבוּרָה
      • Chesed shebiGevurah
      • Lovingkindness within Might

      Parameters

      • lang: OmerLang = 'en'

        en (English), he (Hebrew with nikud), or translit (Hebrew in Sephardic transliteration)

      Returns string

      a string such as Lovingkindness within Might or חֶֽסֶד שֶׁבִּגְבוּרָה

      import {OmerEvent, HDate, months} from '@hebcal/core';
      const day8 = new OmerEvent(new HDate(23, months.NISAN, 5784), 8);
      day8.sefira('en'); // 'Lovingkindness within Might'
      day8.sefira('he'); // 'חֶֽסֶד שֶׁבִּגְבוּרָה'
      day8.sefira('translit'); // 'Chesed shebiGevurah'