Jewish calendar REST API return zmanim for people that are located in Israel and keep 2 days yom tov
I'm using the Hebcal Jewish calendar REST API for an app that shows weekly zmanim (candle lighitng and havdalah times).
We have people that live in Israel and keep 2 days yomtov. Is there a way to call the API for a location in Israel and get back the holidays in 2 days?
For example, if I call the following:
Can I see 2 days shevuos (June 12 & June13) like I see when calling this api for a location outside of Israel?
Hi, thank you for using the Hebcal APIs.
You are correct that if you specify a location in Israel such as Jerusalem, the API automatically assumes only one day of yom tov. There is no way to disable the Israel holiday schedule if you specify a city for candle-lighting and fast times.
You can work around this by making two separate calls to the API, and then merge the results together in your application.
The first would be for Diaspora holidays and Torah readings only, like the following:
The second could be for Jerusalem candle-lighting times only, with no holidays or Torah reading:
Note carefully the URL differences. The first URL uses c=off s=on maj=on. The second URL uses c=on s=off maj=off
We hope this helps!
Pulling weekday vs weekend chagim
I'm looking to calculate for each chag, what the probability is that the full-day of chag will fall on a workday (Monday - Friday) and what is the probability of a weekend (Saturday-Sunday) over the 19 year cycle.
I would be as happy to have a way to look at probability by day of the week.
I prompted ChatGPT and other AI bots, but they all got the dates totally wrong.
Is there a way to easily pull this from hebcal?
Hi, thanks for your message. This is pretty easy to calculate using the Hebcal command-line interface. Here's the general idea:
$ hebcal --chag-only -w | egrep -v "(Erev|CH''M|Hoshana)"
4/23/2024 Tue, Pesach I
4/24/2024 Wed, Pesach II
4/29/2024 Mon, Pesach VII
4/30/2024 Tue, Pesach VIII
6/12/2024 Wed, Shavuot I
6/13/2024 Thu, Shavuot II
10/3/2024 Thu, Rosh Hashana 5785
10/4/2024 Fri, Rosh Hashana II
10/12/2024 Sat, Yom Kippur
10/17/2024 Thu, Sukkot I
10/18/2024 Fri, Sukkot II
10/24/2024 Thu, Shmini Atzeret
10/25/2024 Fri, Simchat Torah
Now we need to just count how many times each holiday occurs on Sat or Sun versus another day
$ hebcal --chag-only -w --years 100 2000 | egrep -v "(Erev|CH''M|Hoshana)" | grep "Yom Kippur" | egrep "(Sat|Sun)," | wc -l
32
Here is a summary:
- Rosh Hashana: 58 / 200 chag days on Saturday or Sunday
- Yom Kippur: 32 / 100 days on Saturday or Sunday
- Sukkot: 58 / 200 chag days on Saturday or Sunday
- Pesach: 117 / 400 chag days on Saturday or Sunday
- Shavuot: 56 / 200 chag days on Saturday or Sunday
Note that we used a 100 year window to approximate. Note that has little to do with the 19-year cycle and more to do with the interaction between the Hebrew and Gregorian calendars. See the Jewish-Gregorian calendar correspondence cycle for more details on that. A calculation can be done with 1000 years, yielding similar results.
A similar calculation could be done for Israel if you add the -i flag, and adjust for the Israeli weekend (Friday + Saturday).
The Yesod veshoresh hovodah says to bring Mashiach, do good to people who did bad to you. He says it from Zohar that this stops tragedies and antisemitism. Pray for people who hurt you to get the most Olom Habah and then pray for Mashiach and for everyon
The Yesod veshoresh hovodah says to bring Mashiach, do good to people who did bad to you. He says it from Zohar that this stops tragedies and antisemitism. Pray for people who hurt you to get the most Olom Habah and then pray for Mashiach and for everyone to have Techiyas hameisim. Put this sign in shul, Email this to everyone
Engish only displa
Hello,
I created a calendar several years ago, downloaded it and then imported it into my Google account.
This was before the "counter" was implemented into the calendar (that Heb Cal added "3rd Hebrew Birthday" or "2nd Yahrzeit" text before the persons name).
As the family expanded (or לא עלינו shrunk), I added more events to the calendar. At one point I noticed the change that the "counter" was added. It is a great idea and I loved it. Prior to the counter I added to the persons name the year of birth or passing and then one could calculate how many years past.
I wanted now to add another event to the calendar.
But, I noticed a change - the "counter" is now in Hebrew (יארצייט ה-2 של Itzhak ben Avraham) and I don't see how to change it to English.
I browsed through the "help" section and unfortunately did no find an answer.
Is it possible to change the "יארצייט ה-2" to English (I know it's possible to open the calendar file on notepad++ and change it manually, but I hope it's possible to do it through Heb Cal website prior of downloading the file).
If it makes any difference, I live in Israel. But, I also tried doing it through a US IP and no change.
Computer details - OS: Win 10 || Region: Israel || Region format: English (Israel) || OS Language: English US.
Thank you!
Based on your feedback, we have made a minor change to the calendar events. If the name contains BOTH Hebrew letters and also English letters, the anniversary titles will once again be rendered in English. If the name contains at least one Hebrew letter (א through ת) and contains no English letters (A-Z), then the anniversary title will continue to be rendered in Hebrew.
November 30 Error?
November 30 is showing "Mevarchim."
Should it be "Machar Chodesh?"
Thanks
Thanks for your message!
The Hebrew Date Converter page for Sat, 30 November 2024 correctly lists the Torah portion as Parashat Toldot
If you look at the Parashat Toldot detail page, you will see that indeed it already lists the special Machar Chodesh Haftarah
Problem with Subscribed Calendar Link
Created a subscribed calendar link which originally contained only Yahrzeit's. I have now started adding birthdays and anniversaries. The name has changed to Hebrew Anniversaries. However the subscribed link ends with name Yahrzeit.ics. This is weirding me out. Happy to try to copy over my calendar and create a new link but don't want to do one event at a time. Any solutions?
Thank you for corresponding with us privately, the information you provided was very helpful. We've fixed the issue on the Hebcal website, and Arizona ZIP codes now correctly follow the Daylight Saving Time rules. Our apologies for the inaccuracy.
Hello. What happened to the audio line by line recording of the aliyah? This was helpful!
https://www.hebcal.com/home/498/torah-trope-chanting-audio-leyning
In addition to providing details about the weekly Torah readings, Hebcal makes it convenient to listen to the audio of a professional cantor chanting Torah trope.
If you visit the Hebcal parsha pages from a larger display (desktop/laptop computer or a tablet), you can click the speaker icon to visit Sefaria‘s embedded PocketTorah audio.
The Sefaria native mobile app does not currently support the PocketTorah audio, so the Hebcal speaker icons are not displayed on mobile phones. The audio is displayed only on Sefaria website and depends on a larger screen, such as a desktop/laptop computer or a tablet.
Please add credit to the two Jewish authors behind the Hebcal algorithms
The Hebcal UNIX program was a C reimplementation of the calendar code found in the Emacs text editor. That was written by Prof. Edward Reingold, who wrote a book on calendar algorithms with Nahum Dershowitz. I think it would be showing kavod to include both their names under the "About" page on Hebcal.org, as they are the ones who contributed the core technology. Here is a page with more information:
https://www.emacswiki.org/emacs/EdwardReingold
Thanks,
~Tomer Altman
Thanks for the suggestion. We updated our "about Hebcal" page as follows
Hebcal was created in 1992 by Danny Sadinoff as a Unix/Linux program, derived in large part from the Emacs 19 calendar routines by Edward M. Reingold and Nachum Dershowitz.
Customer support service by UserEcho