int = jDate1InYear(jDay, jMonth, nWesternYear)
int = jDate2InYear(jDay, jMonth, nWesternYear)
For example, to calculate the date of Yom Kippur in 2020:
nYomKippur = jDate1InYear(1, 10, 2020)
There are 2 functions because the Jewish calendar is not exactly aligned with the Gregorian, Western, calendar and therefore a given Jewish date may occur more than once in a Gregorian year. To determine if a given Jewish day-month pair occurs more than once in a year, you need to see if the value of jDate2InYear() is larger than 0.
bTwoOccurences = (jDate2InYear(jDay, jMonth, aYear) > 0)
In practice, this concerns only Jewish dates which fall around January 1st, which fortunately does not correspond to any of the major Jewish holidays. But if you are evaluating arbitrary Jewish dates in your macros, you should always check for multiple occurrences.
Topic 161200, last updated on 18-Apr-2020