A plain-object Hebrew date: year, month and day with no methods and no
time or location attached.
This is the lightweight currency of the low-level functions in this
package (abs2hebrew, hd2abs, getYahrzeitHD,
getBirthdayHD). The HDate class is structurally
compatible with it, so an HDate may be passed anywhere a
SimpleHebrewDate is expected.
Note that nothing validates the field values: constructing
{yy: 5769, mm: 8, dd: 31} is possible even though Cheshvan 5769 has
only 29 days. Use HDate if you want out-of-range days and
months normalized for you.
A plain-object Hebrew date: year, month and day with no methods and no time or location attached.
This is the lightweight currency of the low-level functions in this package (abs2hebrew, hd2abs, getYahrzeitHD, getBirthdayHD). The HDate class is structurally compatible with it, so an
HDatemay be passed anywhere aSimpleHebrewDateis expected.Note that nothing validates the field values: constructing
{yy: 5769, mm: 8, dd: 31}is possible even though Cheshvan 5769 has only 29 days. Use HDate if you want out-of-range days and months normalized for you.Example