<?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: Z-Day: The Morning After (More or Less)</title>
	<atom:link href="http://www.mobilitysite.com/2009/01/z-day-the-morning-after-more-or-less/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mobilitysite.com/2009/01/z-day-the-morning-after-more-or-less/</link>
	<description>Mobile News, Reviews, and Views.</description>
	<lastBuildDate>Fri, 11 Dec 2009 20:15:20 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: steve laser</title>
		<link>http://www.mobilitysite.com/2009/01/z-day-the-morning-after-more-or-less/comment-page-1/#comment-14497</link>
		<dc:creator>steve laser</dc:creator>
		<pubDate>Tue, 06 Jan 2009 23:38:37 +0000</pubDate>
		<guid isPermaLink="false">http://mobilitysite.com/2009/01/z-day-the-morning-after-more-or-less/#comment-14497</guid>
		<description>Good call Pony!  Glad your education is helping us!</description>
		<content:encoded><![CDATA[<p>Good call Pony!  Glad your education is helping us!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pony99CA</title>
		<link>http://www.mobilitysite.com/2009/01/z-day-the-morning-after-more-or-less/comment-page-1/#comment-14478</link>
		<dc:creator>Pony99CA</dc:creator>
		<pubDate>Tue, 06 Jan 2009 02:05:53 +0000</pubDate>
		<guid isPermaLink="false">http://mobilitysite.com/2009/01/z-day-the-morning-after-more-or-less/#comment-14478</guid>
		<description>Oops, that should &quot;days == 366&quot;.  I now get a compiler error....  :D

Steve</description>
		<content:encoded><![CDATA[<p>Oops, that should &#8220;days == 366&#8243;.  I now get a compiler error&#8230;.  :D</p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pony99CA</title>
		<link>http://www.mobilitysite.com/2009/01/z-day-the-morning-after-more-or-less/comment-page-1/#comment-14477</link>
		<dc:creator>Pony99CA</dc:creator>
		<pubDate>Tue, 06 Jan 2009 02:04:32 +0000</pubDate>
		<guid isPermaLink="false">http://mobilitysite.com/2009/01/z-day-the-morning-after-more-or-less/#comment-14477</guid>
		<description>In the loop, they needed another else statement, as shown highlighted below:

while (days &gt; 365) { 
   if (IsLeapYear(year)) { 
      if (days &gt; 366) { 
         days -= 366; year += 1; 
      } &lt;b&gt;else {
         if (day == 366) break;
      }&lt;/b&gt;
   } else { 
      days -= 365; year += 1; 
   }
}

Of course, I&#039;m not so sure why they need ugly loops like that.  In high school, my programmable calculators worked by converting the Gregorian date (anything past somewhere in 1582) to a Julian number.  The programmers should have done that with January 1, 1980, added the days, then done the Julian number-to-Gregorian date conversion.

I don&#039;t know which would be faster, but the looping algorithm is O(n) where (if I remember correctly) the Julian number conversions were O(1).

I need to use my Computer Science degree somewhere, right?  :D

Steve</description>
		<content:encoded><![CDATA[<p>In the loop, they needed another else statement, as shown highlighted below:</p>
<p>while (days &gt; 365) {<br />
   if (IsLeapYear(year)) {<br />
      if (days &gt; 366) {<br />
         days -= 366; year += 1;<br />
      } <b>else {<br />
         if (day == 366) break;<br />
      }</b><br />
   } else {<br />
      days -= 365; year += 1;<br />
   }<br />
}</p>
<p>Of course, I&#8217;m not so sure why they need ugly loops like that.  In high school, my programmable calculators worked by converting the Gregorian date (anything past somewhere in 1582) to a Julian number.  The programmers should have done that with January 1, 1980, added the days, then done the Julian number-to-Gregorian date conversion.</p>
<p>I don&#8217;t know which would be faster, but the looping algorithm is O(n) where (if I remember correctly) the Julian number conversions were O(1).</p>
<p>I need to use my Computer Science degree somewhere, right?  :D</p>
<p>Steve</p>
]]></content:encoded>
	</item>
</channel>
</rss>
