<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to Use the Zmanim API</title>
	<atom:link href="http://www.kosherjava.com/zmanim-project/how-to-use-the-zmanim-api/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kosherjava.com</link>
	<description>A weblog about Zmanim, Kosher Coffee (Kosher Java) and other odds &#38; ends</description>
	<lastBuildDate>Thu, 19 Jan 2012 06:11:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: KosherJava</title>
		<link>http://www.kosherjava.com/zmanim-project/how-to-use-the-zmanim-api/comment-page-1/#comment-60352</link>
		<dc:creator>KosherJava</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kosherjava.com/how-to-use-the-zmanim-api/#comment-60352</guid>
		<description>Anonymous,
The base class of the Calendar classes in the Zmanim API, the &lt;a href=&quot;/zmanim/docs/api/net/sourceforge/zmanim/AstronomicalCalendar.html&quot; rel=&quot;nofollow&quot;&gt;AstronomicalCalendar&lt;/a&gt; has a method &lt;a href=&quot;/zmanim/docs/api/net/sourceforge/zmanim/AstronomicalCalendar.html#getTimeOffset%28java.util.Date,%20double%29&quot; rel=&quot;nofollow&quot;&gt;getTimeOffset(Date time, double offset)&lt;/a&gt; that does exactly what you are looking for. The API uses it internally to calculate times such as the 72 minute zman. Please see the &lt;a href=&quot;/2010/01/24/elevation-now-only-impacts-sunrise-and-sunset-calculations-in-the-zmanim-api/&quot; rel=&quot;nofollow&quot;&gt;Elevation Now Only Impacts Sunrise and Sunset Calculations in the Zmanim API&lt;/a&gt; post to understand why sea level sunrise and sunset should be used. The example below shows how to calculate alos as 72 minute before sunrise, and tzais as 72 minutes after sunset.

[java]
String locationName = &quot;Lakewood, NJ&quot;;
double latitude = 40.096; //Lakewood, NJ
double longitude = -74.222; //Lakewood, NJ
double elevation = 0; //optional elevation
TimeZone timeZone = TimeZone.getTimeZone(&quot;America/New_York&quot;);
GeoLocation location = new GeoLocation(locationName, latitude, longitude, elevation, timeZone);
//Use any of the API&#039;s Calendar classes
//AstronomicalCalendar zCal = new ComplexZmanimCalendar(location);
//ZmanimCalendar zCal = new ComplexZmanimCalendar(location);
ComplexZmanimCalendar zCal = new ComplexZmanimCalendar(location);
//Return the time 72 minutes before sunrise
Date alos = zCal.getTimeOffset(getSeaLevelSunrise(), -72 * MINUTE_MILLIS);
//Return the time 72 minutes after sunset
Date tzais = zCal.getTimeOffset(getSeaLevelSunset(), 72 * MINUTE_MILLIS);
[/java]</description>
		<content:encoded><![CDATA[<p>Anonymous,<br />
The base class of the Calendar classes in the Zmanim API, the <a href="/zmanim/docs/api/net/sourceforge/zmanim/AstronomicalCalendar.html" rel="nofollow">AstronomicalCalendar</a> has a method <a href="/zmanim/docs/api/net/sourceforge/zmanim/AstronomicalCalendar.html#getTimeOffset%28java.util.Date,%20double%29" rel="nofollow">getTimeOffset(Date time, double offset)</a> that does exactly what you are looking for. The API uses it internally to calculate times such as the 72 minute zman. Please see the <a href="/2010/01/24/elevation-now-only-impacts-sunrise-and-sunset-calculations-in-the-zmanim-api/" rel="nofollow">Elevation Now Only Impacts Sunrise and Sunset Calculations in the Zmanim API</a> post to understand why sea level sunrise and sunset should be used. The example below shows how to calculate alos as 72 minute before sunrise, and tzais as 72 minutes after sunset.</p>
<pre class="brush: java; title: ; notranslate">
String locationName = &quot;Lakewood, NJ&quot;;
double latitude = 40.096; //Lakewood, NJ
double longitude = -74.222; //Lakewood, NJ
double elevation = 0; //optional elevation
TimeZone timeZone = TimeZone.getTimeZone(&quot;America/New_York&quot;);
GeoLocation location = new GeoLocation(locationName, latitude, longitude, elevation, timeZone);
//Use any of the API's Calendar classes
//AstronomicalCalendar zCal = new ComplexZmanimCalendar(location);
//ZmanimCalendar zCal = new ComplexZmanimCalendar(location);
ComplexZmanimCalendar zCal = new ComplexZmanimCalendar(location);
//Return the time 72 minutes before sunrise
Date alos = zCal.getTimeOffset(getSeaLevelSunrise(), -72 * MINUTE_MILLIS);
//Return the time 72 minutes after sunset
Date tzais = zCal.getTimeOffset(getSeaLevelSunset(), 72 * MINUTE_MILLIS);
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: anonymus</title>
		<link>http://www.kosherjava.com/zmanim-project/how-to-use-the-zmanim-api/comment-page-1/#comment-60247</link>
		<dc:creator>anonymus</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kosherjava.com/how-to-use-the-zmanim-api/#comment-60247</guid>
		<description>Is there a way to calculate times based on minutes, something like getTimeOffsetByMinutes(int minute);</description>
		<content:encoded><![CDATA[<p>Is there a way to calculate times based on minutes, something like getTimeOffsetByMinutes(int minute);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rabbies&#8217; Yartait for Android - KosherDev</title>
		<link>http://www.kosherjava.com/zmanim-project/how-to-use-the-zmanim-api/comment-page-1/#comment-47899</link>
		<dc:creator>Rabbies&#8217; Yartait for Android - KosherDev</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kosherjava.com/how-to-use-the-zmanim-api/#comment-47899</guid>
		<description>[...] to make me something different. Then thanks go to Eliyohu Hershfeld, which developed a wonderfull Java API for detecting zmanim Also I found very good code, which converts current date to Jewish one, by Zvi [...]</description>
		<content:encoded><![CDATA[<p>[...] to make me something different. Then thanks go to Eliyohu Hershfeld, which developed a wonderfull Java API for detecting zmanim Also I found very good code, which converts current date to Jewish one, by Zvi [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KosherJava</title>
		<link>http://www.kosherjava.com/zmanim-project/how-to-use-the-zmanim-api/comment-page-1/#comment-40653</link>
		<dc:creator>KosherJava</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kosherjava.com/how-to-use-the-zmanim-api/#comment-40653</guid>
		<description>Mordekhai,
Moishe Beshkin (see his &lt;a href=&quot;http://kosherdev.com/&quot; rel=&quot;nofollow&quot;&gt;KosherDev blog&lt;/a&gt;) wrote the &lt;a href=&quot;http://wordpress.org&quot; rel=&quot;nofollow&quot;&gt;Wordpress&lt;/a&gt; &lt;a href=&quot;http://wordpress.org/extend/plugins/zmanim-widget/&quot; rel=&quot;nofollow&quot;&gt;Zmanim Widget&lt;/a&gt; plugin  that does what you are looking for. Since your site does not appear to be a Wordpress site, I suggest that you contact him to see if there is a way his code can be used in a non-WordPress PHP page.</description>
		<content:encoded><![CDATA[<p>Mordekhai,<br />
Moishe Beshkin (see his <a href="http://kosherdev.com/" rel="nofollow">KosherDev blog</a>) wrote the <a href="http://wordpress.org" rel="nofollow">WordPress</a> <a href="http://wordpress.org/extend/plugins/zmanim-widget/" rel="nofollow">Zmanim Widget</a> plugin  that does what you are looking for. Since your site does not appear to be a WordPress site, I suggest that you contact him to see if there is a way his code can be used in a non-WordPress PHP page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mordekhai</title>
		<link>http://www.kosherjava.com/zmanim-project/how-to-use-the-zmanim-api/comment-page-1/#comment-40651</link>
		<dc:creator>mordekhai</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kosherjava.com/how-to-use-the-zmanim-api/#comment-40651</guid>
		<description>shalom
i would like to get the PHP lignes to obtain a block with shabbat parcha and zmanim candles for paris france
i want them please !!! READY to copy and past because i am not prgrammer
see my website www.rungiscacher.com

kol tuv</description>
		<content:encoded><![CDATA[<p>shalom<br />
i would like to get the PHP lignes to obtain a block with shabbat parcha and zmanim candles for paris france<br />
i want them please !!! READY to copy and past because i am not prgrammer<br />
see my website <a href="http://www.rungiscacher.com" rel="nofollow">http://www.rungiscacher.com</a></p>
<p>kol tuv</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KosherJava</title>
		<link>http://www.kosherjava.com/zmanim-project/how-to-use-the-zmanim-api/comment-page-1/#comment-14578</link>
		<dc:creator>KosherJava</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kosherjava.com/how-to-use-the-zmanim-api/#comment-14578</guid>
		<description>A more &lt;a href=&quot;/zmanim/ZmanimClock.html&quot; rel=&quot;nofollow&quot;&gt;up to date zmanim clock&lt;/a&gt; is now available. It is of pre-alpha quality.</description>
		<content:encoded><![CDATA[<p>A more <a href="/zmanim/ZmanimClock.html" rel="nofollow">up to date zmanim clock</a> is now available. It is of pre-alpha quality.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KosherJava</title>
		<link>http://www.kosherjava.com/zmanim-project/how-to-use-the-zmanim-api/comment-page-1/#comment-14409</link>
		<dc:creator>KosherJava</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kosherjava.com/how-to-use-the-zmanim-api/#comment-14409</guid>
		<description>Michael,
At the suggestion of &lt;a href=&quot;http://www.sym454.org&quot; rel=&quot;nofollow&quot;&gt;Dr. Irv Bromberg&lt;/a&gt; I started the process of modifying a visual clock that shows zmanim. It is very rough at this point, but can be seen at the alpha quality &lt;a href=&quot;/zmanim/ZmanimClockMulti.html&quot; rel=&quot;nofollow&quot;&gt;Zmanim Clock page&lt;/a&gt;. There are many clocks cluttering this test page, all using slightly different configurations. Clicking on the clock will bring up an actual list of zmanim. I will see if I can find time to update the code.</description>
		<content:encoded><![CDATA[<p>Michael,<br />
At the suggestion of <a href="http://www.sym454.org" rel="nofollow">Dr. Irv Bromberg</a> I started the process of modifying a visual clock that shows zmanim. It is very rough at this point, but can be seen at the alpha quality <a href="/zmanim/ZmanimClockMulti.html" rel="nofollow">Zmanim Clock page</a>. There are many clocks cluttering this test page, all using slightly different configurations. Clicking on the clock will bring up an actual list of zmanim. I will see if I can find time to update the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KosherJava</title>
		<link>http://www.kosherjava.com/zmanim-project/how-to-use-the-zmanim-api/comment-page-1/#comment-14408</link>
		<dc:creator>KosherJava</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kosherjava.com/how-to-use-the-zmanim-api/#comment-14408</guid>
		<description>Jack,
you seem to be requesting a &lt;a href=&quot;http://en.wikipedia.org/wiki/REST&quot; rel=&quot;nofollow&quot;&gt;REST&lt;/a&gt; style &lt;a href=&quot;http://en.wikipedia.org/wiki/Web_Service&quot; rel=&quot;nofollow&quot;&gt;Web Service&lt;/a&gt;. This is very simple using the Zmanim &lt;a href=&quot;http://en.wikipedia.org/wiki/API&quot; rel=&quot;nofollow&quot;&gt;API&lt;/a&gt;, since the &lt;a href=&quot;/zmanim/docs/api/net/sourceforge/zmanim/AstronomicalCalendar.html#toString()&quot; rel=&quot;nofollow&quot;&gt;toString&lt;/a&gt; method returns an &lt;a href=&quot;http://en.wikipedia.org/wiki/XML&quot; rel=&quot;nofollow&quot;&gt;XML&lt;/a&gt; representation of the calendar including any zmanim that you might need. All you need is a &lt;a href=&quot;http://en.wikipedia.org/wiki/Java_Servlet&quot; rel=&quot;nofollow&quot;&gt;Java Servlet&lt;/a&gt; that would return data from the API.</description>
		<content:encoded><![CDATA[<p>Jack,<br />
you seem to be requesting a <a href="http://en.wikipedia.org/wiki/REST" rel="nofollow">REST</a> style <a href="http://en.wikipedia.org/wiki/Web_Service" rel="nofollow">Web Service</a>. This is very simple using the Zmanim <a href="http://en.wikipedia.org/wiki/API" rel="nofollow">API</a>, since the <a href="/zmanim/docs/api/net/sourceforge/zmanim/AstronomicalCalendar.html#toString()" rel="nofollow">toString</a> method returns an <a href="http://en.wikipedia.org/wiki/XML" rel="nofollow">XML</a> representation of the calendar including any zmanim that you might need. All you need is a <a href="http://en.wikipedia.org/wiki/Java_Servlet" rel="nofollow">Java Servlet</a> that would return data from the API.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Kopinsky</title>
		<link>http://www.kosherjava.com/zmanim-project/how-to-use-the-zmanim-api/comment-page-1/#comment-14407</link>
		<dc:creator>Michael Kopinsky</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kosherjava.com/how-to-use-the-zmanim-api/#comment-14407</guid>
		<description>Is there a zmanim Java applet available?  I would like something that I can place on my desktop as an Active Desktop item.  Such things are available for candlelighting times (for example, see http://www.torahtots.com/timecapsule/cities/philadelphia.htm), but I have not found anything for zmanim, and I don&#039;t have the applet programming skills to make it myself.

Thanks,
Michael</description>
		<content:encoded><![CDATA[<p>Is there a zmanim Java applet available?  I would like something that I can place on my desktop as an Active Desktop item.  Such things are available for candlelighting times (for example, see <a href="http://www.torahtots.com/timecapsule/cities/philadelphia.htm" rel="nofollow">http://www.torahtots.com/timecapsule/cities/philadelphia.htm</a>), but I have not found anything for zmanim, and I don&#8217;t have the applet programming skills to make it myself.</p>
<p>Thanks,<br />
Michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jack boe</title>
		<link>http://www.kosherjava.com/zmanim-project/how-to-use-the-zmanim-api/comment-page-1/#comment-14348</link>
		<dc:creator>jack boe</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kosherjava.com/how-to-use-the-zmanim-api/#comment-14348</guid>
		<description>Is there a way to incorporate this by using an httprequest from an asp page. Like an xml page, where I would send the variables and get a response with the correct candle lighting time?

thanks</description>
		<content:encoded><![CDATA[<p>Is there a way to incorporate this by using an httprequest from an asp page. Like an xml page, where I would send the variables and get a response with the correct candle lighting time?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

