-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More JewishCalendar
Tefila Rules / Special Days
#198
Comments
@compugenius
|
@KosherJava thanks for your prompt reply.
|
|
|
As far as the constant ROSH_CHODESH, the main use of these constants are in getYomTovIndex(). That returns an int I am not sure that it is worth an effort in returning. I may change my mind down the line. |
@KosherJava I understand the usage of the constants, but |
Alright, the only dangling suggestion is Closing this now, thanks! |
I would have left it open until I actually addressed the items that can be addressed. |
Oh, I had figured that you had decided to not implement I also just realized I had forgotten about |
public boolean isPesach() {
int holidayIndex = getYomTovIndex();
return holidayIndex == PESACH;
}
public boolean isSuccos() {
int holidayIndex = getYomTovIndex();
return holidayIndex == SUCCOS || holidayIndex == HOSHANA_RABBA || holidayIndex == SHEMINI_ATZERES || holidayIndex == SIMCHAS_TORAH;
}
public boolean isShavuos() {
int holidayIndex = getYomTovIndex();
return holidayIndex == SHAVUOS;
}
public boolean isPesachHoliday() {
return isPesach() || isCholHamoedPesach();
}
public boolean isSuccosHoliday() {
return isSuccos() || isCholHamoedSuccos();
}
public boolean isYaalehVyavo() {
return isRoshChodesh() || isPesachHoliday() || isSuccosHoliday() || isShavuos();
} Here's a proper |
@compugenius , |
I know that. I did not create those functions, rather just called them from my own. I extracted each boolean to it's own function, which is definitely overboard, but you never know what people need 🤷
I missed Rosh Hashanah and Yom Kippur, but if you look at my |
First part of #198 Fixes a bug that did not consider Hoshana Rabba as part of Chol Hamoed Succos.
@compugenius , as far as I can tell, this is all done with the recent commits. Please let me know if anything was missed. |
LGTM 😁 |
All the above functions will work except
isRoshChodesh()
. For some reason, the constROSH_CHODESH
does not seem to be used. Why is that?The text was updated successfully, but these errors were encountered: