<?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: RPCFN: Business Hours (#10)</title>
	<atom:link href="http://rubylearning.com/blog/2010/05/25/rpcfn-business-hours-10/feed/" rel="self" type="application/rss+xml" />
	<link>http://rubylearning.com/blog/2010/05/25/rpcfn-business-hours-10/</link>
	<description>Helping Ruby Programmers become Awesome</description>
	<lastBuildDate>Wed, 08 Feb 2012 15:25:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Rubyists and Companies I am thankful for in 2010 &#124; Ruby Here Blog</title>
		<link>http://rubylearning.com/blog/2010/05/25/rpcfn-business-hours-10/comment-page-2/#comment-129567</link>
		<dc:creator>Rubyists and Companies I am thankful for in 2010 &#124; Ruby Here Blog</dc:creator>
		<pubDate>Wed, 22 Dec 2010 05:58:52 +0000</pubDate>
		<guid isPermaLink="false">http://rubylearning.com/blog/?p=3991#comment-129567</guid>
		<description>[...] Peter Cooper, Peter Crawford, Rajan Chandi, Ramakrishnan Muthukrishnan, Rich Hickey, Rohan Kini, Ryan Bates, Sachin Joshi, Sahil Gore, Samnang Chhun, Sandip Ransing, Sanjay Goel, Sau Sheong Chang, Sébastien [...]</description>
		<content:encoded><![CDATA[<p>[...] Peter Cooper, Peter Crawford, Rajan Chandi, Ramakrishnan Muthukrishnan, Rich Hickey, Rohan Kini, Ryan Bates, Sachin Joshi, Sahil Gore, Samnang Chhun, Sandip Ransing, Sanjay Goel, Sau Sheong Chang, Sébastien [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Satish Talim</title>
		<link>http://rubylearning.com/blog/2010/05/25/rpcfn-business-hours-10/comment-page-2/#comment-124350</link>
		<dc:creator>Satish Talim</dc:creator>
		<pubDate>Mon, 26 Jul 2010 22:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://rubylearning.com/blog/?p=3991#comment-124350</guid>
		<description>&lt;span class=&quot;topsy_trackback_comment&quot;&gt;&lt;span class=&quot;topsy_twitter_username&quot;&gt;&lt;span class=&quot;topsy_trackback_content&quot;&gt;Last day today to submit your solution to Ryan Bates&#039; #Ruby Challenge http://ow.ly/2gYVF&lt;/span&gt;&lt;/span&gt;</description>
		<content:encoded><![CDATA[<p><span class="topsy_trackback_comment"><span class="topsy_twitter_username"><span class="topsy_trackback_content">Last day today to submit your solution to Ryan Bates&#39; #Ruby Challenge <a href="http://ow.ly/2gYVF" rel="nofollow">http://ow.ly/2gYVF</a></span></span></span></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Hutzelman</title>
		<link>http://rubylearning.com/blog/2010/05/25/rpcfn-business-hours-10/comment-page-2/#comment-124105</link>
		<dc:creator>Eric Hutzelman</dc:creator>
		<pubDate>Tue, 06 Jul 2010 21:06:41 +0000</pubDate>
		<guid isPermaLink="false">http://rubylearning.com/blog/?p=3991#comment-124105</guid>
		<description>&lt;span class=&quot;topsy_trackback_comment&quot;&gt;&lt;span class=&quot;topsy_twitter_username&quot;&gt;&lt;span class=&quot;topsy_trackback_content&quot;&gt;Ruby Challenge 10 is over and all solutions are published.  Check out Ryan Bates solution for some really clean code:  http://bit.ly/cFaAee&lt;/span&gt;&lt;/span&gt;</description>
		<content:encoded><![CDATA[<p><span class="topsy_trackback_comment"><span class="topsy_twitter_username"><span class="topsy_trackback_content">Ruby Challenge 10 is over and all solutions are published.  Check out Ryan Bates solution for some really clean code:  <a href="http://bit.ly/cFaAee" rel="nofollow">http://bit.ly/cFaAee</a></span></span></span></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitry Lipovoi Winner RPCFN #10</title>
		<link>http://rubylearning.com/blog/2010/05/25/rpcfn-business-hours-10/comment-page-2/#comment-124092</link>
		<dc:creator>Dmitry Lipovoi Winner RPCFN #10</dc:creator>
		<pubDate>Tue, 06 Jul 2010 01:08:53 +0000</pubDate>
		<guid isPermaLink="false">http://rubylearning.com/blog/?p=3991#comment-124092</guid>
		<description>[...] In this brief interview, Satish Talim of RubyLearning talks to Dmitry Lipovoi of Russia, winner of the tenth Ruby Programming Challenge For Newbies. [...]</description>
		<content:encoded><![CDATA[<p>[...] In this brief interview, Satish Talim of RubyLearning talks to Dmitry Lipovoi of Russia, winner of the tenth Ruby Programming Challenge For Newbies. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitry Lipovoi</title>
		<link>http://rubylearning.com/blog/2010/05/25/rpcfn-business-hours-10/comment-page-2/#comment-124051</link>
		<dc:creator>Dmitry Lipovoi</dc:creator>
		<pubDate>Wed, 30 Jun 2010 08:55:27 +0000</pubDate>
		<guid isPermaLink="false">http://rubylearning.com/blog/?p=3991#comment-124051</guid>
		<description>As Cary Swoveland noticed (thanks), message was broken in another one place (around solutions 15th and 16th):

=== Solution #15:

hours = BusinessHours.new(&quot;9:00 AM&quot;, &quot;3:00 PM&quot;)
hours.closed :sun
hours.calculate_deadline(2*60*60, &quot;Jun 6, 2010 11:45 AM&quot;)
ArgumentError: comparison of Time with nil failed

Jun 6th is Sun.


=== Solution #16:

hours = BusinessHours.new(&quot;9:00 AM&quot;, &quot;3:00 PM&quot;)
hours.update :fri, &quot;10:00 AM&quot;, &quot;5:00 PM&quot;
hours.calculate_deadline(14*60*60, &quot;Jun 3, 2010 9:00 AM&quot;) # =&gt; Sat Jun 05 11:00:00

Jun 3rd is Thu. Should return &quot;Sat Jun 05 10:00:00&quot;</description>
		<content:encoded><![CDATA[<p>As Cary Swoveland noticed (thanks), message was broken in another one place (around solutions 15th and 16th):</p>
<p>=== Solution #15:</p>
<p>hours = BusinessHours.new(&#8220;9:00 AM&#8221;, &#8220;3:00 PM&#8221;)<br />
hours.closed :sun<br />
hours.calculate_deadline(2*60*60, &#8220;Jun 6, 2010 11:45 AM&#8221;)<br />
ArgumentError: comparison of Time with nil failed</p>
<p>Jun 6th is Sun.</p>
<p>=== Solution #16:</p>
<p>hours = BusinessHours.new(&#8220;9:00 AM&#8221;, &#8220;3:00 PM&#8221;)<br />
hours.update :fri, &#8220;10:00 AM&#8221;, &#8220;5:00 PM&#8221;<br />
hours.calculate_deadline(14*60*60, &#8220;Jun 3, 2010 9:00 AM&#8221;) # =&gt; Sat Jun 05 11:00:00</p>
<p>Jun 3rd is Thu. Should return &#8220;Sat Jun 05 10:00:00&#8243;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

