<?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: Displaying the number of hours without a leading zero in Ruby&#8217;s #strftime</title>
	<atom:link href="http://infovore.org/archives/2007/11/27/displaying-the-number-of-hours-without-a-leading-zero-in-rubys-strftime/feed/" rel="self" type="application/rss+xml" />
	<link>http://infovore.org/archives/2007/11/27/displaying-the-number-of-hours-without-a-leading-zero-in-rubys-strftime/</link>
	<description>a weblog by Tom Armitage</description>
	<lastBuildDate>Sun, 08 Apr 2012 09:50:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Mabed</title>
		<link>http://infovore.org/archives/2007/11/27/displaying-the-number-of-hours-without-a-leading-zero-in-rubys-strftime/comment-page-1/#comment-154797</link>
		<dc:creator>Mabed</dc:creator>
		<pubDate>Wed, 16 Sep 2009 17:27:07 +0000</pubDate>
		<guid isPermaLink="false">http://infovore.org/archives/2007/11/27/displaying-the-number-of-hours-without-a-leading-zero-in-rubys-strftime/#comment-154797</guid>
		<description>In case anybody looks for the solution to a problem like mine, please take a look at 

http://stackoverflow.com/questions/1430780/string-formatting-remove-trailing-chars</description>
		<content:encoded><![CDATA[<p>In case anybody looks for the solution to a problem like mine, please take a look at </p>
<p><a href="http://stackoverflow.com/questions/1430780/string-formatting-remove-trailing-chars" rel="nofollow">http://stackoverflow.com/questions/1430780/string-formatting-remove-trailing-chars</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mabed</title>
		<link>http://infovore.org/archives/2007/11/27/displaying-the-number-of-hours-without-a-leading-zero-in-rubys-strftime/comment-page-1/#comment-154777</link>
		<dc:creator>Mabed</dc:creator>
		<pubDate>Wed, 16 Sep 2009 04:31:17 +0000</pubDate>
		<guid isPermaLink="false">http://infovore.org/archives/2007/11/27/displaying-the-number-of-hours-without-a-leading-zero-in-rubys-strftime/#comment-154777</guid>
		<description>Cool, unfortunately, it doesn&#039;t work if I have an expression where I started with a number of seconds for example if I stated with 10000 seconds. 

time = Time.at(10000).gmtime.strftime(&quot;&quot;%l:%M&quot;&quot;) =&gt; 2:46 which is incorrect. I was hoping it would output: 2:46:40</description>
		<content:encoded><![CDATA[<p>Cool, unfortunately, it doesn&#8217;t work if I have an expression where I started with a number of seconds for example if I stated with 10000 seconds. </p>
<p>time = Time.at(10000).gmtime.strftime(&#8220;&#8221;%l:%M&#8221;") =&gt; 2:46 which is incorrect. I was hoping it would output: 2:46:40</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://infovore.org/archives/2007/11/27/displaying-the-number-of-hours-without-a-leading-zero-in-rubys-strftime/comment-page-1/#comment-146394</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Wed, 06 May 2009 14:08:16 +0000</pubDate>
		<guid isPermaLink="false">http://infovore.org/archives/2007/11/27/displaying-the-number-of-hours-without-a-leading-zero-in-rubys-strftime/#comment-146394</guid>
		<description>Lower case am/pm is achieved with %P.
Yup, that&#039;s right - an upper case &#039;P&#039;. Go figure!</description>
		<content:encoded><![CDATA[<p>Lower case am/pm is achieved with %P.<br />
Yup, that&#8217;s right &#8211; an upper case &#8216;P&#8217;. Go figure!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Ward</title>
		<link>http://infovore.org/archives/2007/11/27/displaying-the-number-of-hours-without-a-leading-zero-in-rubys-strftime/comment-page-1/#comment-58079</link>
		<dc:creator>Tom Ward</dc:creator>
		<pubDate>Fri, 14 Dec 2007 15:45:58 +0000</pubDate>
		<guid isPermaLink="false">http://infovore.org/archives/2007/11/27/displaying-the-number-of-hours-without-a-leading-zero-in-rubys-strftime/#comment-58079</guid>
		<description>Nice find.  Just what I was looking for.  Cheers Tom.</description>
		<content:encoded><![CDATA[<p>Nice find.  Just what I was looking for.  Cheers Tom.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Mison</title>
		<link>http://infovore.org/archives/2007/11/27/displaying-the-number-of-hours-without-a-leading-zero-in-rubys-strftime/comment-page-1/#comment-55580</link>
		<dc:creator>Paul Mison</dc:creator>
		<pubDate>Tue, 27 Nov 2007 15:52:39 +0000</pubDate>
		<guid isPermaLink="false">http://infovore.org/archives/2007/11/27/displaying-the-number-of-hours-without-a-leading-zero-in-rubys-strftime/#comment-55580</guid>
		<description>I&#039;d expect that Ruby&#039;s strftime just passes things straight down to the underlying C strftime library:

blech@theproject:~/web/husk.org/misc$ man strftime
...
     %l    Hour (12-hour clock) [1,12]; single  digits  are  preceded by a blank.

Also:

     %p    Locale&#039;s equivalent of either a.m. or p.m.

I&#039;m not sure if that&#039;s lower case by default in any English locale, though. Personally I like leading zeroes and the twentyfour hour clock.</description>
		<content:encoded><![CDATA[<p>I&#8217;d expect that Ruby&#8217;s strftime just passes things straight down to the underlying C strftime library:</p>
<p>blech@theproject:~/web/husk.org/misc$ man strftime<br />
&#8230;<br />
     %l    Hour (12-hour clock) [1,12]; single  digits  are  preceded by a blank.</p>
<p>Also:</p>
<p>     %p    Locale&#8217;s equivalent of either a.m. or p.m.</p>
<p>I&#8217;m not sure if that&#8217;s lower case by default in any English locale, though. Personally I like leading zeroes and the twentyfour hour clock.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

