The JewcalGetNearestShabbatGregorianDate function gets the nearest Shabbat of the current/given date. If the current/given date falls on a Shabbat, then the same date is returned.
DWORD JewcalGetNearestShabbatGregorianDate(LPJEWCALDATE lpGregorianDate, LPJEWCALDATE lpReturnGregorianDate);
If it is not NULL, it must point to a JEWCALDATE structure which specifies the Gregorian date to process. If it is NULL, the current date is used. |
Must point to a JEWCALDATE structure in which the calculated date is returned. |
If the function succeeds, the return value is JEWCAL_ERROR_OK.
If the function fails, the return value is other than JEWCAL_ERROR_OK. The function fails if the passed Gregorian date is invalid.
This function is new in version 1.1