Skip to content
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

Hebrew calendar and Jewish holidays, #872

Open
rosennej opened this issue May 26, 2019 · 6 comments
Open

Hebrew calendar and Jewish holidays, #872

rosennej opened this issue May 26, 2019 · 6 comments

Comments

@rosennej
Copy link

  1. I suggest adding the Jewish holidays to the Hebrew calendar. I know it is quite complicated. I could help with advice and consultation with calendar experts.
  2. I disagree with the statement "The civil Hebrew day starts at 18:00 o'clock on the previous day." The banking day in Israel starts at 18:30 on weekdays, 14:00 on Fridays, unless they are holidays. Sunday is a weekday. The banking day is legally the business day unless specified differently. Before 2006 the banking day started at 15:00. Where the Hebrew calendar is used for religious purposes is is always sunset. Same outside of Israel, as far as I know.
@MenoData
Copy link
Owner

about 2: See the other new issue for better documentation. I agree that the documentation should avoid the term "civil day". It is not related to banking days in Israel.

about 1: Thank you very much for your offer. I know at least following sources for holiday handling:

Here the general question arises if we might choose a new module for holidays which depends on Time4J-base. Main reason is that it might require more frequent updating - not so much for Jewish holidays but for holidays in any countries. The new module would be like a database which is open for frequent additions and changes. It would manage different types and validities of holidays in countries or regions. We also have the interface net.time4j.range.HolidayModel which should be implemented by Jewish holidays.

However, contributors for such an updatable holiday module are very welcome. I am not sure if there will be enough contributors willing to contribute changes.

@rosennej
Copy link
Author

rosennej commented May 28, 2019 via email

@MenoData
Copy link
Owner

It was just my faulty oversimplification. "civil" = "non religious" with the consequence that the exact time of evening is not important. Anyway, if a user does not pass any start-of-day-parameter then Time4J can only guess, and 18:00 is a (rough) approximation which works best near the equator. The documentation should explain this behaviour explicitly using the word "approximation".

By the way, if we go down to minutes or even seconds (a little bit questionable in context of possible accuracy of astronomic calculations) then some religious Jews even seem to make strict differences betwen various sunset- and nightfall-definitions, see for example: https://www.yeshiva.co/ask/?id=7469

@rosennej
Copy link
Author

rosennej commented May 28, 2019 via email

@MenoData
Copy link
Owner

MenoData commented May 28, 2019

Users should pass a StartOfDay-Parameter with the appropriate geographic location for achieving best results, equal if Hijri or Hebrew calendar. Such methods and related API already exist, but maybe the documentation should be more expressive about it.

@MenoData
Copy link
Owner

Oh, and when applied to polar regions which don't observe sunset at all in summer then only conventions like setting the geographic latitude to 60° N might help (as some religous authorities have suggested as compromise). This can be done, too, by passing an appropriate StartOfDay-definition. The user has all freedom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants