<?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: Time for strftime</title>
	<atom:link href="http://www.nullislove.com/2007/05/16/time-for-strftime/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nullislove.com/2007/05/16/time-for-strftime/</link>
	<description>Code for Coders</description>
	<lastBuildDate>Sat, 31 Dec 2011 17:28:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Martin</title>
		<link>http://www.nullislove.com/2007/05/16/time-for-strftime/comment-page-1/#comment-2458</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Sat, 25 Sep 2010 02:01:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/?p=49#comment-2458</guid>
		<description>I can&#039;t tell you how long I&#039;ve search for a good comprehensive list like this.
Even http://corelib.rubyonrails.org/ is this good.

Thank you.</description>
		<content:encoded><![CDATA[<p>I can&#8217;t tell you how long I&#8217;ve search for a good comprehensive list like this.<br />
Even <a href="http://corelib.rubyonrails.org/" rel="nofollow">http://corelib.rubyonrails.org/</a> is this good.</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alpha01</title>
		<link>http://www.nullislove.com/2007/05/16/time-for-strftime/comment-page-1/#comment-2442</link>
		<dc:creator>Alpha01</dc:creator>
		<pubDate>Sat, 24 Jul 2010 22:49:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/?p=49#comment-2442</guid>
		<description>This article makes more sense than the actual ruby Time class documentation.

Thanks!</description>
		<content:encoded><![CDATA[<p>This article makes more sense than the actual ruby Time class documentation.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Les Nightingill</title>
		<link>http://www.nullislove.com/2007/05/16/time-for-strftime/comment-page-1/#comment-2432</link>
		<dc:creator>Les Nightingill</dc:creator>
		<pubDate>Sat, 12 Jun 2010 18:08:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/?p=49#comment-2432</guid>
		<description>... or to get around the Ruby quirk of adding a leading zero, you can define a format in your date_formats.rb like this:

ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS[:md] = lambda { &#124;date&#124; date.strftime(&quot;%b #{date.mday}&quot;) }

of course, this only applies to Rails apps. The Date#mday method does not have a leading zero.</description>
		<content:encoded><![CDATA[<p>&#8230; or to get around the Ruby quirk of adding a leading zero, you can define a format in your date_formats.rb like this:</p>
<p>ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS[:md] = lambda { |date| date.strftime(&#8220;%b #{date.mday}&#8221;) }</p>
<p>of course, this only applies to Rails apps. The Date#mday method does not have a leading zero.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Time parsing issue &#8211; Afraha &#124; Our Own Tiny Planet</title>
		<link>http://www.nullislove.com/2007/05/16/time-for-strftime/comment-page-1/#comment-2237</link>
		<dc:creator>Time parsing issue &#8211; Afraha &#124; Our Own Tiny Planet</dc:creator>
		<pubDate>Sat, 11 Jul 2009 15:27:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/?p=49#comment-2237</guid>
		<description>[...] Time parsing issue    2009/7/11 Älphä Blüë : &gt; &gt; I had been looking at: &gt; &gt; http://www.nullislove.com/2007/05/16/time-for-strftime/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Time parsing issue    2009/7/11 Älphä Blüë : &gt; &gt; I had been looking at: &gt; &gt; <a href="http://www.nullislove.com/2007/05/16/time-for-strftime/" rel="nofollow">http://www.nullislove.com/2007/05/16/time-for-strftime/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Istikopoulos</title>
		<link>http://www.nullislove.com/2007/05/16/time-for-strftime/comment-page-1/#comment-2233</link>
		<dc:creator>Bill Istikopoulos</dc:creator>
		<pubDate>Tue, 07 Jul 2009 13:06:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/?p=49#comment-2233</guid>
		<description>Right, I guess one could add the time difference according to the country of the visitor. Thanks for clarifying that.</description>
		<content:encoded><![CDATA[<p>Right, I guess one could add the time difference according to the country of the visitor. Thanks for clarifying that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Skoglund</title>
		<link>http://www.nullislove.com/2007/05/16/time-for-strftime/comment-page-1/#comment-2231</link>
		<dc:creator>Kevin Skoglund</dc:creator>
		<pubDate>Mon, 06 Jul 2009 16:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/?p=49#comment-2231</guid>
		<description>A timestamp can be either for the server or the client.  When you call time() or Time.now(), you are getting the server time.  You would need to adjust that time if you wanted to localize it for a client abroad.</description>
		<content:encoded><![CDATA[<p>A timestamp can be either for the server or the client.  When you call time() or Time.now(), you are getting the server time.  You would need to adjust that time if you wanted to localize it for a client abroad.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Istikopoulos</title>
		<link>http://www.nullislove.com/2007/05/16/time-for-strftime/comment-page-1/#comment-2230</link>
		<dc:creator>Bill Istikopoulos</dc:creator>
		<pubDate>Sat, 04 Jul 2009 08:40:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/?p=49#comment-2230</guid>
		<description>Thanks for this great guide.

I just have a quick question. Is the timestamp grabbed from the server or the client? Could be a problem if it&#039;s server time and the app is hosted abroad.</description>
		<content:encoded><![CDATA[<p>Thanks for this great guide.</p>
<p>I just have a quick question. Is the timestamp grabbed from the server or the client? Could be a problem if it&#8217;s server time and the app is hosted abroad.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://www.nullislove.com/2007/05/16/time-for-strftime/comment-page-1/#comment-2217</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Mon, 22 Jun 2009 15:50:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/?p=49#comment-2217</guid>
		<description>%u does not work in Ruby it seems.</description>
		<content:encoded><![CDATA[<p>%u does not work in Ruby it seems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Skoglund</title>
		<link>http://www.nullislove.com/2007/05/16/time-for-strftime/comment-page-1/#comment-1364</link>
		<dc:creator>Kevin Skoglund</dc:creator>
		<pubDate>Thu, 19 Feb 2009 15:21:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/?p=49#comment-1364</guid>
		<description>@danielvw: That is the correct way to solve it.  Or just don&#039;t let it be null to start with.  ;-)</description>
		<content:encoded><![CDATA[<p>@danielvw: That is the correct way to solve it.  Or just don&#8217;t let it be null to start with.  <img src='http://www.nullislove.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: danielvw</title>
		<link>http://www.nullislove.com/2007/05/16/time-for-strftime/comment-page-1/#comment-1363</link>
		<dc:creator>danielvw</dc:creator>
		<pubDate>Thu, 19 Feb 2009 12:50:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/?p=49#comment-1363</guid>
		<description>dear kevin,

timestring = timestamp.strftime(&quot;The date is %m/%d/%y&quot;) will result an error if the &quot;timestamp&quot; is null.

i overcome it with this code:
if timestamp
timestring = timestamp.strftime(&quot;The date is %m/%d/%y&quot;)
end

it solved the problem, but is there any smarter way to do this?;p

thanks before.</description>
		<content:encoded><![CDATA[<p>dear kevin,</p>
<p>timestring = timestamp.strftime(&#8220;The date is %m/%d/%y&#8221;) will result an error if the &#8220;timestamp&#8221; is null.</p>
<p>i overcome it with this code:<br />
if timestamp<br />
timestring = timestamp.strftime(&#8220;The date is %m/%d/%y&#8221;)<br />
end</p>
<p>it solved the problem, but is there any smarter way to do this?;p</p>
<p>thanks before.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

