i don't understand this code, cause it looks like it accounts if it's weekdays and only if it's not, it would accont for it.
without this check i would check , i would get "מחר ר"ח " as the image displayed.
yomtov getmacharchodesh(hdate date) { if (date.wday) { return CHOL; } if (date.day == 30 || date.day == 29) { return MACHAR_CHODESH; } return CHOL; }
@emaayan ,
I apologize for the long delay in replying. This method returns if the hafrorah of the week is Machar Chodesh, not if it is erev Rosh Chodesh. What you are looking for is isErevRoshChodesh().
i don't understand this code, cause it looks like it accounts if it's weekdays and only if it's not, it would accont for it. without this check i would check , i would get "מחר ר"ח " as the image displayed.
yomtov getmacharchodesh(hdate date) { if (date.wday) { return CHOL; } if (date.day == 30 || date.day == 29) { return MACHAR_CHODESH; } return CHOL; }