<?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: The Perfect&#160;Timestamp</title>
	<atom:link href="http://almosteffortless.com/2007/07/29/the-perfect-timestamp/feed/" rel="self" type="application/rss+xml" />
	<link>http://almosteffortless.com/2007/07/29/the-perfect-timestamp/</link>
	<description></description>
	<lastBuildDate>Wed, 10 Mar 2010 01:15:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: linoj</title>
		<link>http://almosteffortless.com/2007/07/29/the-perfect-timestamp/comment-page-1/#comment-53714</link>
		<dc:creator>linoj</dc:creator>
		<pubDate>Tue, 31 Jul 2007 03:22:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.almosteffortless.com/2007/07/29/the-perfect-timestamp/#comment-53714</guid>
		<description>Your post inspired me to think of my own holy grail of timestamps. It&#039;s a bit different from yours :)
http://www.vaporbase.com/postings/My_timestamp_holy_grail</description>
		<content:encoded><![CDATA[<p>Your post inspired me to think of my own holy grail of timestamps. It&#8217;s a bit different from yours :)<br />
<a href="http://www.vaporbase.com/postings/My_timestamp_holy_grail" rel="nofollow">http://www.vaporbase.com/postings/My_timestamp_holy_grail</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://almosteffortless.com/2007/07/29/the-perfect-timestamp/comment-page-1/#comment-53649</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Mon, 30 Jul 2007 01:39:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.almosteffortless.com/2007/07/29/the-perfect-timestamp/#comment-53649</guid>
		<description>Jason, you can check out the app I mentioned (El Dorado) to see how I&#039;m supporting timezones. I&#039;m pretty sure I&#039;m not doing everything 100% right, but I think it&#039;s pretty good for a first try. 

http://eldorado.googlecode.com/svn/trunk/app/helpers/application_helper.rb

I removed the stuff dealing with timezones from this post to simplify things. I figure when you&#039;re saving times, you should save them at UTC, and when you&#039;re displaying them, you adjust them and display them to be the user&#039;s local time without displaying the timezone information.</description>
		<content:encoded><![CDATA[<p>Jason, you can check out the app I mentioned (El Dorado) to see how I&#8217;m supporting timezones. I&#8217;m pretty sure I&#8217;m not doing everything 100% right, but I think it&#8217;s pretty good for a first try. </p>
<p><a href="http://eldorado.googlecode.com/svn/trunk/app/helpers/application_helper.rb" rel="nofollow">http://eldorado.googlecode.com/svn/trunk/app/helpers/application_helper.rb</a></p>
<p>I removed the stuff dealing with timezones from this post to simplify things. I figure when you&#8217;re saving times, you should save them at UTC, and when you&#8217;re displaying them, you adjust them and display them to be the user&#8217;s local time without displaying the timezone information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Frankovitz</title>
		<link>http://almosteffortless.com/2007/07/29/the-perfect-timestamp/comment-page-1/#comment-53646</link>
		<dc:creator>Jason Frankovitz</dc:creator>
		<pubDate>Sun, 29 Jul 2007 23:14:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.almosteffortless.com/2007/07/29/the-perfect-timestamp/#comment-53646</guid>
		<description>This is a great effort and addresses a problem I&#039;ve been thinking about for a long time. I don&#039;t see anything about timezone support though - is that a deliberate omission? 3:15 pm in LA is not 3:15pm in Madagascar :)</description>
		<content:encoded><![CDATA[<p>This is a great effort and addresses a problem I&#8217;ve been thinking about for a long time. I don&#8217;t see anything about timezone support though &#8211; is that a deliberate omission? 3:15 pm in LA is not 3:15pm in Madagascar :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikkel</title>
		<link>http://almosteffortless.com/2007/07/29/the-perfect-timestamp/comment-page-1/#comment-53632</link>
		<dc:creator>mikkel</dc:creator>
		<pubDate>Sun, 29 Jul 2007 19:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.almosteffortless.com/2007/07/29/the-perfect-timestamp/#comment-53632</guid>
		<description>am/pm means crap to me, we are running 24 hour clocks in my part of the world...</description>
		<content:encoded><![CDATA[<p>am/pm means crap to me, we are running 24 hour clocks in my part of the world&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://almosteffortless.com/2007/07/29/the-perfect-timestamp/comment-page-1/#comment-53625</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sun, 29 Jul 2007 17:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.almosteffortless.com/2007/07/29/the-perfect-timestamp/#comment-53625</guid>
		<description>@RSL:

If you did want periods in your ams and pms, you could put something like:

class Time # or DateTime
  alias strftime old_strftime

  def strftime(format)
    self.old_strftime(format).gsub(/([ap])(m)/i, &#039;\1.\2.&#039;)
  end
end

in your environment.rb.

Alex</description>
		<content:encoded><![CDATA[<p>@RSL:</p>
<p>If you did want periods in your ams and pms, you could put something like:</p>
<p>class Time # or DateTime<br />
  alias strftime old_strftime</p>
<p>  def strftime(format)<br />
    self.old_strftime(format).gsub(/([ap])(m)/i, &#8216;\1.\2.&#8217;)<br />
  end<br />
end</p>
<p>in your environment.rb.</p>
<p>Alex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://almosteffortless.com/2007/07/29/the-perfect-timestamp/comment-page-1/#comment-53622</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Sun, 29 Jul 2007 16:41:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.almosteffortless.com/2007/07/29/the-perfect-timestamp/#comment-53622</guid>
		<description>I think you&#039;re right, actually, but I hate the way it looks with periods in there. 

Another thing I should have mentioned - what&#039;s up with there being no way to get rid of leading zeros in the hour? That&#039;s why I&#039;m doing the %I.to_i.to_s thing, which seems to be a pretty decent solution.</description>
		<content:encoded><![CDATA[<p>I think you&#8217;re right, actually, but I hate the way it looks with periods in there. </p>
<p>Another thing I should have mentioned &#8211; what&#8217;s up with there being no way to get rid of leading zeros in the hour? That&#8217;s why I&#8217;m doing the %I.to_i.to_s thing, which seems to be a pretty decent solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RSL</title>
		<link>http://almosteffortless.com/2007/07/29/the-perfect-timestamp/comment-page-1/#comment-53621</link>
		<dc:creator>RSL</dc:creator>
		<pubDate>Sun, 29 Jul 2007 16:07:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.almosteffortless.com/2007/07/29/the-perfect-timestamp/#comment-53621</guid>
		<description>&quot;For example, AM and PM always come out in ALL CAPS. Whatâ€™s the deal with that?&quot;

Indeed, what _is_ with that. Your solution is sooooo close but according to most of the style guides I&#039;ve found online [ http://www.google.com/search?q=am+pm+capitalized ] am/pm should contain periods like a.m./p.m. Yes, it&#039;s more than a hair pedantic but what&#039;s the point of this code if not to get things _right_?</description>
		<content:encoded><![CDATA[<p>&#8220;For example, AM and PM always come out in ALL CAPS. Whatâ€™s the deal with that?&#8221;</p>
<p>Indeed, what _is_ with that. Your solution is sooooo close but according to most of the style guides I&#8217;ve found online [ <a href="http://www.google.com/search?q=am+pm+capitalized" rel="nofollow">http://www.google.com/search?q=am+pm+capitalized</a> ] am/pm should contain periods like a.m./p.m. Yes, it&#8217;s more than a hair pedantic but what&#8217;s the point of this code if not to get things _right_?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
