Calculates a birthday or anniversary (non-yahrzeit) and returns it as
an HDate.
Same calculation as getBirthdayHD, but the result comes back
as an HDate instance rather than a plain {yy, mm, dd} object, so it
can be rendered (render, renderGematriya) or used for further
Hebrew calendar arithmetic directly.
Note that a birthday is not calculated the same way as a yahrzeit:
when the original date is missing from hyear it is postponed rather
than moved earlier. See getBirthdayHD for the full algorithm
and its edge cases.
hyear may be the original year, in which case the original date is
returned unchanged: someone's birth date is a meaningful day in its
own right, not merely the zeroth anniversary of itself. A death has no
equivalent — a yahrzeit begins at the first anniversary — which is why
yahrzeit rejects the year of death.
The date argument is never modified, so a single original date can be
reused to generate a run of years.
Calculates a birthday or anniversary (non-yahrzeit) and returns it as an HDate.
Same calculation as getBirthdayHD, but the result comes back as an
HDateinstance rather than a plain{yy, mm, dd}object, so it can be rendered (render,renderGematriya) or used for further Hebrew calendar arithmetic directly.Note that a birthday is not calculated the same way as a yahrzeit: when the original date is missing from
hyearit is postponed rather than moved earlier. See getBirthdayHD for the full algorithm and its edge cases.hyearmay be the original year, in which case the original date is returned unchanged: someone's birth date is a meaningful day in its own right, not merely the zeroth anniversary of itself. A death has no equivalent — a yahrzeit begins at the first anniversary — which is why yahrzeit rejects the year of death.The
dateargument is never modified, so a single original date can be reused to generate a run of years.