Moshe Wagner recently released ZmanimPlasma for the Linux platform. This KDEPlasma desktop widget displays the Hebrew date and zmanim on a Linux desktop. The zmanim calculations use Moshe’s C++ portZmanim CLI wrapper that enables a C++ program to call the Java Zmanim API. There are no current plans to make this widget available on any other platform. It can be downloaded from the Luach project download page. Moshe has in the past used the Zmanim API for use in Linux and some cross-platform projects. These include the above-mentioned Zmanim CLI, and Zmanim GUI that uses the Zmanim CLI.
Updated on April 13, 2010 כ״ט בניסן תש״ע to reflect information from Moshe explaining that this was not a port.
Update: The map implementation described in this post has been largely superseded. See the Zmanim Map 3.5 post (November 2012) and the ZmanimMap.com 4.0 post (November 2026) for the current map.
The availability of the Bearing to Yerushalayim and Zmanim Map was originally announced on December 30, 2007. At the time there were a number of bugs related to the Google Maps API. These bugs were reported to Google and eventually fixed. Since that time, the only change was a minor JavaScript fix for IE. The Bearing to Yerushalayim worked, but the zmanim tabs had a major issue because the time zone was calculated based on the user’s current browser time zone. This made it tricky to check zmanim in a different location or time zone than the user’s current time zone.I recently updated the map to look up the actual time zone of the latitude and longitude selected by the user. This was implemented by doing a lookup at the geonames.orgtime zone web service. The time zone is passed to the Zmanim API and used to generate the XML output of a list of daily zmanim that is displayed in the map. Since the Olson (now IANA) time zone database changes a few times a year, there will almost certainly be cases where the proper time zone can’t be determined. Some of these are changes of time zone names, such as the change from Asia/Calcutta to Asia/Kolkata (my host will not run the TZ Updater tool). In these cases, a simple mapping between the old and new was added to the map. In cases where the time zone can’t be determined, the time zone will default to UTC. Ocean locations within 10 km of land will use the closest landmass, but anywhere beyond 10 km will default to UTC. One issue with using the geonames.org web service is that when it is down, the map will time out. I experimented with various ways of dealing with this, but unless my host updates the Java version from 1.4, they are too complex to use at this time.
How Much Earlier is Sunrise on Mount Everest Due to Elevation?
Answer:
The greatest sunrise and sunset elevation effect on Earth is on Mount Everest (at 27.988°, 86.925° as seen on the Direction to Yerushalayim Map). With an elevation of 8,848 meters (29,029 feet), sunrise would be up to 15 minutes and 31 seconds earlier on Mount Everest than at sea level. The range of the effect is from 15 minutes and 31 seconds on June 22, to a “low” of 13 minutes and 40 seconds earlier on March 18. Being in a large mountain range with obstructed horizons, it is likely never actually seen that early. In addition to questions about mountains, every few months I get asked about how much earlier sunrise/sunset can be seen in skyscrapers. There are various halacha questions as to whether this actually affects zmanim that I will mention later. Here are some raw numbers. Burj Khalifa (at 25.197°, 55.274° as seen on the Direction to Yerushalayim Map) is the tallest building in the world. With a height of 828 m (2,717 ft), visible sunrise to someone standing on top of the crown (something unrealistic) on June 22 would be at 5:25:03 AM versus 5:29:37 AM at sea level, a difference of 4 minutes and 34 seconds. Sunset would be 7:16:38 PM versus 7:12:04 PM at sea level, a difference of 4 minutes and 34 seconds. A more realistic scenario would be the visible sunrise on the highest floor (the 160th), an elevation of 672 m (2,204 ft), at 5:25:30 AM, 4 minutes and 7 seconds earlier than at sea level. Sunset on the 160th floor would be 7:16:11 PM, or 4 minutes and 7 seconds later than at sea level.
As far as the halacha being affected by the elevation of buildings, the Baal Hatanya seems to indicate that tall buildings would make sunset later. See Yisrael Vehazmanim ישראל והזמנים Vol. II, page 910. In the Shraga Lachaim שרגא לחיים footnotes, Rabbi Harfenes states that
ויש להוסיף שהוא דבר תמוה לומר דעד שלא נבנו הבנינים הגבוהים היה זמן שבת התלוי בשקעה״ח (שקיעה ראשונה להגאנים ושקיעה שניה לר״ת) מוקדם, ולאחר שנבנו יש לאחר הזמנים, ועד עכשיו שהיו בניו יארק הבנינים התאומויות (טווין-טאוע״ר בלע״ז) שכל א׳ מהם היה בת ק״י קומות היה זמן השקיעה מאוחר, ועתה לאחר שהפילו והרסו אותם רשעים וזדים ארורים ימ״ש חזר הדבר לקדמותו להקדים זמן השקיעה.
Note: This post is about an old release. The current version of the KosherJava Zmanim library is available from Maven and GitHub (see the Zmanim Download page).
The Zmanim API 1.2 was released today. The only change in this release is the removal of elevation as a factor in the calculation of all zmanim besides sunrise and sunset. Updated JavaDocs now reflect these changes. Please see the Elevation Now Only Impacts Sunrise and Sunset Calculations in the Zmanim API post for additional information.
I would like to thank the various people who contacted me on the subject.
The main download is the Zmanim 1.2 release zip file that includes source files and JavaDoc documentation. Also available for download (included in the above zip file) is the main zmanim-1.2.jar. The zmanimAstronomical jar that only includes the AstronomicalCalendar was not impacted by this change, but its version has been updated from 1.1 to zmanimAstronomical-1.2.jar for consistency. Additional detail on the downloads can be seen on the Zmanim Download page.
Note: On August 1, 2018 – כ״א אב תשע״ח, elevation became optionally available as a factor in most zmanim calculations. The KosherJava Zmanim library was updated to optionally allow using elevation as an attribute that will adjust most zmanim via ZmanimCalendar.setUseElevation(boolean). There are some zmanim, such as degree-based zmanim, that are driven by the amount of light in the sky and are not impacted by elevation. These zmanim intentionally do not support elevation adjustment. The following is the original post.
I have received a few emails over the past year or so about the use of elevation as part of the calculation of various zmanim in the API. All releases of the Zmanim API up to the current 1.1 release use elevation to affect the calculation of all sunrise/sunset-based zmanim. While my footnote on the Zmanim Calendar Generator page stated that this only impacted sunrise and sunset (quoting the Yisrael Vehazmanim and Calendrical Calculations), in practice all zmanim calculated based on sunrise and sunset were affected by elevation. An example of a zman that used elevation in 1.1, but will no longer in 1.2, is the calculation of sof zman krias shema according to the GR”A. The soon-to-be-released version 1.2 limits the impact of elevation to sunrise and sunset only. The Zmanim Calendar Generator page already uses the latest changes to the code. To facilitate changes by ports of the API, a list of changes to the source code of the ZmanimCalendar.java and ComprehensiveZmanimCalendar.java is available in a diff file (a proper Unix diff/patch is not available at this time). The diff files were generated prior to updating the JavaDocs to simplify the work of anyone modifying ports of the Zmanim API. Detailed sources for not using elevation for anything besides sunrise and sunset can be found in פרק ב׳ סעיף ט׳ (pages 186-187) in the second edition of Zmanim Kehilchasam זמנים כהלכתם by Rabbi Dovid Yehuda Bursztyn.