<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Sunrise, Sunset</title>
	<atom:link href="http://programmingpraxis.com/2009/11/24/sunrise-sunset/feed/" rel="self" type="application/rss+xml" />
	<link>http://programmingpraxis.com/2009/11/24/sunrise-sunset/</link>
	<description>A collection of etudes, updated weekly, for the education and enjoyment of the savvy programmer</description>
	<lastBuildDate>Sat, 11 Feb 2012 09:48:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Fredrik</title>
		<link>http://programmingpraxis.com/2009/11/24/sunrise-sunset/#comment-1017</link>
		<dc:creator><![CDATA[Fredrik]]></dc:creator>
		<pubDate>Tue, 16 Feb 2010 11:16:53 +0000</pubDate>
		<guid isPermaLink="false">http://programmingpraxis.com/?p=1696#comment-1017</guid>
		<description><![CDATA[There are public domain APIs to do this. Check the Acknowledgements section on http://sunrisehour.com!]]></description>
		<content:encoded><![CDATA[<p>There are public domain APIs to do this. Check the Acknowledgements section on <a href="http://sunrisehour.com" rel="nofollow">http://sunrisehour.com</a>!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: programmingpraxis</title>
		<link>http://programmingpraxis.com/2009/11/24/sunrise-sunset/#comment-784</link>
		<dc:creator><![CDATA[programmingpraxis]]></dc:creator>
		<pubDate>Wed, 25 Nov 2009 21:06:42 +0000</pubDate>
		<guid isPermaLink="false">http://programmingpraxis.com/?p=1696#comment-784</guid>
		<description><![CDATA[See the article from the U. S. Naval Observatory referenced in the solution.  It works even very close to the poles.]]></description>
		<content:encoded><![CDATA[<p>See the article from the U. S. Naval Observatory referenced in the solution.  It works even very close to the poles.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kallikanzarid</title>
		<link>http://programmingpraxis.com/2009/11/24/sunrise-sunset/#comment-783</link>
		<dc:creator><![CDATA[Kallikanzarid]]></dc:creator>
		<pubDate>Wed, 25 Nov 2009 21:02:04 +0000</pubDate>
		<guid isPermaLink="false">http://programmingpraxis.com/?p=1696#comment-783</guid>
		<description><![CDATA[What about polar circles? How should a program behave when given a point close to a pole?]]></description>
		<content:encoded><![CDATA[<p>What about polar circles? How should a program behave when given a point close to a pole?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Cowan</title>
		<link>http://programmingpraxis.com/2009/11/24/sunrise-sunset/#comment-782</link>
		<dc:creator><![CDATA[John Cowan]]></dc:creator>
		<pubDate>Tue, 24 Nov 2009 20:52:24 +0000</pubDate>
		<guid isPermaLink="false">http://programmingpraxis.com/?p=1696#comment-782</guid>
		<description><![CDATA[Fair enough, since this is a float API.  I was making a general point that was malapropos to this particular piece of code.]]></description>
		<content:encoded><![CDATA[<p>Fair enough, since this is a float API.  I was making a general point that was malapropos to this particular piece of code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: programmingpraxis</title>
		<link>http://programmingpraxis.com/2009/11/24/sunrise-sunset/#comment-781</link>
		<dc:creator><![CDATA[programmingpraxis]]></dc:creator>
		<pubDate>Tue, 24 Nov 2009 14:59:25 +0000</pubDate>
		<guid isPermaLink="false">http://programmingpraxis.com/?p=1696#comment-781</guid>
		<description><![CDATA[The GMT offset need not be given as an integer.  Here is the sunrise/sunset calculation for Calcutta, India for today:

&lt;code&gt;&gt; (call-with-values
&#160;&#160;&#160;&#160;(lambda () (solar 22.6 -88.4 2009 11 24 -6.5))
&#160;&#160;&#160;&#160;(lambda (rise set)
&#160;&#160;&#160;&#160;&#160;&#160;(display &quot;Sunrise: &quot;) (display rise) (newline)
&#160;&#160;&#160;&#160;&#160;&#160;(display &quot;Sunset: &quot;) (display set)  (newline)))
Sunrise: 5:57
Sunset: 16:53&lt;/code&gt;

The times agree with &lt;a href=&quot;http://www.wunderground.com/global/stations/42809.html&quot; rel=&quot;nofollow&quot;&gt;Weather Underground&lt;/a&gt; within three minutes.]]></description>
		<content:encoded><![CDATA[<p>The GMT offset need not be given as an integer.  Here is the sunrise/sunset calculation for Calcutta, India for today:</p>
<p><code>&gt; (call-with-values<br />
&nbsp;&nbsp;&nbsp;&nbsp;(lambda () (solar 22.6 -88.4 2009 11 24 -6.5))<br />
&nbsp;&nbsp;&nbsp;&nbsp;(lambda (rise set)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(display "Sunrise: ") (display rise) (newline)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(display "Sunset: ") (display set)  (newline)))<br />
Sunrise: 5:57<br />
Sunset: 16:53</code></p>
<p>The times agree with <a href="http://www.wunderground.com/global/stations/42809.html" rel="nofollow">Weather Underground</a> within three minutes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Cowan</title>
		<link>http://programmingpraxis.com/2009/11/24/sunrise-sunset/#comment-780</link>
		<dc:creator><![CDATA[John Cowan]]></dc:creator>
		<pubDate>Tue, 24 Nov 2009 14:42:58 +0000</pubDate>
		<guid isPermaLink="false">http://programmingpraxis.com/?p=1696#comment-780</guid>
		<description><![CDATA[Note that there are places, like central Australia and the whole of India, where the timezone offset from Universal Time is not an integral number of hours.  The solution should specify the offset in minutes instead.]]></description>
		<content:encoded><![CDATA[<p>Note that there are places, like central Australia and the whole of India, where the timezone offset from Universal Time is not an integral number of hours.  The solution should specify the offset in minutes instead.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

