@hebcal/hdate
    Preparing search index...

    Type Alias AnniversaryDate

    AnniversaryDate: Date | SimpleHebrewDate | number

    Accepted forms of the original event date for getYahrzeit, getYahrzeitHD, getBirthdayOrAnniversary, and getBirthdayHD.

    • Date — a Gregorian date (local time; hours and below ignored)
    • SimpleHebrewDate{yy, mm, dd} already in the Hebrew calendar
    • number — an absolute R.D. day count

    An HDate is structurally a SimpleHebrewDate and may be passed directly. The functions never modify the value you pass, so the same original date can be reused to generate a run of years.

    import {yahrzeit, months} from '@hebcal/hdate';
    const death: AnniversaryDate = {yy: 5784, mm: months.ADAR_II, dd: 15};
    const years = [5785, 5786, 5787].map(y => yahrzeit(y, death));