<?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"
	>
<channel>
	<title>Comments on: Give Your Visitors a Rough Time</title>
	<atom:link href="http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/</link>
	<description></description>
	<pubDate>Fri, 22 Aug 2008 04:39:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: franglix</title>
		<link>http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-653965</link>
		<dc:creator>franglix</dc:creator>
		<pubDate>Thu, 13 Mar 2008 20:59:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-653965</guid>
		<description>I think it's a nice idea, gives a rather relaxed tone - perhaps ideal for a blog.  I will give it a try... Thanks.</description>
		<content:encoded><![CDATA[<p>I think it&#8217;s a nice idea, gives a rather relaxed tone - perhaps ideal for a blog.  I will give it a try&#8230; Thanks.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-649424</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 07 Mar 2008 09:15:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-649424</guid>
		<description>A rough time is often really handy, but while we're all for approximations I find relative times are even more helpful - e.g. "three hours ago", "twenty minutes ago", "yesterday". Gmail does this a lot, and it really helps when working with threaded lists of messages (e.g. emails, forum posts, even comments like these). I put together a little script that achieves the basics of this -- see my post on &lt;a href="http://www.developertutorials.com/blog/php/give-your-visitors-relative-time-php-69/" rel="nofollow"&gt;relative times in PHP&lt;/a&gt; for more details.</description>
		<content:encoded><![CDATA[<p>A rough time is often really handy, but while we&#8217;re all for approximations I find relative times are even more helpful - e.g. &#8220;three hours ago&#8221;, &#8220;twenty minutes ago&#8221;, &#8220;yesterday&#8221;. Gmail does this a lot, and it really helps when working with threaded lists of messages (e.g. emails, forum posts, even comments like these). I put together a little script that achieves the basics of this &#8212; see my post on <a href="http://www.developertutorials.com/blog/php/give-your-visitors-relative-time-php-69/" rel="nofollow">relative times in PHP</a> for more details.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymously</title>
		<link>http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-648875</link>
		<dc:creator>Anonymously</dc:creator>
		<pubDate>Thu, 06 Mar 2008 19:28:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-648875</guid>
		<description>Nice idea but just how helpful is it?

I get the idea that it's just going to confuse, maybe even scare the hell out of your visitors. Maybe you have forgotten the reasons behind displaying the date and time in a set format?

It's because it is uniform, it can be read and understood by just about every living person on the planet, no? Now your suggesting this approach?

The Dr.</description>
		<content:encoded><![CDATA[<p>Nice idea but just how helpful is it?</p>
<p>I get the idea that it&#8217;s just going to confuse, maybe even scare the hell out of your visitors. Maybe you have forgotten the reasons behind displaying the date and time in a set format?</p>
<p>It&#8217;s because it is uniform, it can be read and understood by just about every living person on the planet, no? Now your suggesting this approach?</p>
<p>The Dr.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: captain grammar</title>
		<link>http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-648690</link>
		<dc:creator>captain grammar</dc:creator>
		<pubDate>Thu, 06 Mar 2008 16:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-648690</guid>
		<description>neat script.

I have one improvement:

change:
echo 'Its '.$roughTime;

to:
echo 'It\'s '.$roughTime;</description>
		<content:encoded><![CDATA[<p>neat script.</p>
<p>I have one improvement:</p>
<p>change:<br />
echo &#8216;Its &#8216;.$roughTime;</p>
<p>to:<br />
echo &#8216;It\&#8217;s &#8216;.$roughTime;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: jc</title>
		<link>http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-648680</link>
		<dc:creator>jc</dc:creator>
		<pubDate>Thu, 06 Mar 2008 16:05:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-648680</guid>
		<description>I would argue it takes more effort to think through someone verbally saying "12:24:13 AM" than someone saying "nearly twelve thirty", and it takes more effort to read and think through "nearly twelve thirty" than "12:24 PM"</description>
		<content:encoded><![CDATA[<p>I would argue it takes more effort to think through someone verbally saying &#8220;12:24:13 AM&#8221; than someone saying &#8220;nearly twelve thirty&#8221;, and it takes more effort to read and think through &#8220;nearly twelve thirty&#8221; than &#8220;12:24 PM&#8221;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: brent5392</title>
		<link>http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-648493</link>
		<dc:creator>brent5392</dc:creator>
		<pubDate>Thu, 06 Mar 2008 12:09:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-648493</guid>
		<description>I like it, I really do =P
May very well use it in the future.
Maybe it might be a good idea just to include the time (hours and minutes) after it just for anyone who would like to know the exact time. Keeps everyone happy =)</description>
		<content:encoded><![CDATA[<p>I like it, I really do =P<br />
May very well use it in the future.<br />
Maybe it might be a good idea just to include the time (hours and minutes) after it just for anyone who would like to know the exact time. Keeps everyone happy =)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: mattymcg</title>
		<link>http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-648443</link>
		<dc:creator>mattymcg</dc:creator>
		<pubDate>Thu, 06 Mar 2008 11:04:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-648443</guid>
		<description>@Joshua Paine: Paul was only able to edit his comment because he's an admin. I updated yours -- yes, we know, the blog comment system is less than optimal.

@Toby: Nice one. Obviously not appropriate in every instance, but there are probably a few places here on SitePoint where it might be worth considering.</description>
		<content:encoded><![CDATA[<p>@Joshua Paine: Paul was only able to edit his comment because he&#8217;s an admin. I updated yours &#8212; yes, we know, the blog comment system is less than optimal.</p>
<p>@Toby: Nice one. Obviously not appropriate in every instance, but there are probably a few places here on SitePoint where it might be worth considering.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Stormrider</title>
		<link>http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-648398</link>
		<dc:creator>Stormrider</dc:creator>
		<pubDate>Thu, 06 Mar 2008 10:06:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-648398</guid>
		<description>Nice idea. The division of the hour is strange though. It is 'just gone x' right up until 14 minutes past, but only at 15 minutes past do you get 'quarter past x'. Then on the other side, is 'quarter to x+1' from 40 to 50 minutes past.</description>
		<content:encoded><![CDATA[<p>Nice idea. The division of the hour is strange though. It is &#8216;just gone x&#8217; right up until 14 minutes past, but only at 15 minutes past do you get &#8216;quarter past x&#8217;. Then on the other side, is &#8216;quarter to x+1&#8242; from 40 to 50 minutes past.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Paine</title>
		<link>http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-648184</link>
		<dc:creator>Joshua Paine</dc:creator>
		<pubDate>Thu, 06 Mar 2008 05:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-648184</guid>
		<description>I swear I've been able to edit comments on here before, and Paul obviously did, but I can't seem to get back in to my message to fix the code formatting or correct my JavaScript-style array creation. (Obviously it should have been array('twelve','one'...).)</description>
		<content:encoded><![CDATA[<p>I swear I&#8217;ve been able to edit comments on here before, and Paul obviously did, but I can&#8217;t seem to get back in to my message to fix the code formatting or correct my JavaScript-style array creation. (Obviously it should have been array(&#8217;twelve&#8217;,'one&#8217;&#8230;).)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Annesley</title>
		<link>http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-648178</link>
		<dc:creator>Paul Annesley</dc:creator>
		<pubDate>Thu, 06 Mar 2008 05:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/2008/03/06/give-you-visitors-a-rough-time/#comment-648178</guid>
		<description>I'm not much of a &lt;a href="http://codegolf.com/" rel="nofollow"&gt;golfer&lt;/a&gt;, but you could save yourself a few lines like so... :)

&lt;pre&gt;&lt;code class="php"&gt;
function numberToWord($number)
{
	$numbers = array(null, 'one', 'two', 'three', 'four', 'five', 'six',
		'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve', 'one');
	return isset($numbers[$number]) ? $numbers[$number] : 'twelve';
}
&lt;/code&gt;&lt;/pre&gt;

&lt;em&gt;Edit: beaten to it by Joshua&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;m not much of a <a href="http://codegolf.com/" rel="nofollow">golfer</a>, but you could save yourself a few lines like so&#8230; :)</p>
<pre><code class="php">
function numberToWord($number)
{
	$numbers = array(null, 'one', 'two', 'three', 'four', 'five', 'six',
		'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve', 'one');
	return isset($numbers[$number]) ? $numbers[$number] : 'twelve';
}
</code></pre>
<p><em>Edit: beaten to it by Joshua</em></p>]]></content:encoded>
	</item>
</channel>
</rss>
