-
Notifications
You must be signed in to change notification settings - Fork 50
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
Begin JewishCalendar day At Sunset or Nightfall #139
Comments
You are indeed correct that it should be based on the user's location, but you can use the function at https://github.com/KosherJava/zmanim/blob/master/src/net/sourceforge/zmanim/ZmanimCalendar.java#L672 to get what you are looking for |
@plonibarploni The current design of the library has no concept of time. Adding it would seriously complicate things. As @zachweix pointed out, there is support for what you are looking for in the Zmanim portion of the API that is very time aware. While I will leave this open, I do not see a resolution to this item in the near future. |
@KosherJava While JewishDate states very prominently that it has no concept of time, JewishCalendar does not. Regardless, it seems to be very misleading to include this function |
I created a |
Being a Jewish calendar I would expect it to begin at nightfall. However, from looking at the code it seems that it always uses the regular Calendar date, which begins at midnight. This can result in incorrect results.
Consider the following:
This would consider even after nightfall on Saturday as if it is Shabbat (and therefore
isAssurBemelacha()
would evaluate totrue
), while it should not consider it to be Shabbat (andisAssurBemelacha()
should evaluate tofalse
).The text was updated successfully, but these errors were encountered: