<?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: Creating a Relative Time Function</title>
	<atom:link href="http://dev-tips.com/featured/creating-a-relative-time-function/feed" rel="self" type="application/rss+xml" />
	<link>http://dev-tips.com/featured/creating-a-relative-time-function</link>
	<description>Become a Better Developer, One Tip at a Time.</description>
	<lastBuildDate>Tue, 09 Mar 2010 23:48:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jehnee</title>
		<link>http://dev-tips.com/featured/creating-a-relative-time-function#comment-1478</link>
		<dc:creator>Jehnee</dc:creator>
		<pubDate>Sat, 09 Jan 2010 02:09:52 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=516#comment-1478</guid>
		<description>added new knowledge! thanks mate!</description>
		<content:encoded><![CDATA[<p>added new knowledge! thanks mate!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nidhalbt</title>
		<link>http://dev-tips.com/featured/creating-a-relative-time-function#comment-1269</link>
		<dc:creator>nidhalbt</dc:creator>
		<pubDate>Wed, 30 Dec 2009 11:48:28 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=516#comment-1269</guid>
		<description>A very useful script
I guess i&#039;ll include it in every site from now on</description>
		<content:encoded><![CDATA[<p>A very useful script<br />
I guess i&#8217;ll include it in every site from now on</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vasili</title>
		<link>http://dev-tips.com/featured/creating-a-relative-time-function#comment-1066</link>
		<dc:creator>Vasili</dc:creator>
		<pubDate>Sun, 08 Nov 2009 04:27:11 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=516#comment-1066</guid>
		<description>Please be patient, I don&#039;t mind helping, but I have a lot of things going on right now that take up a lot of my time.

This is just a function to display/return a string that contains the relative time to the current time. It does nothing such as inserting data into a database.

You would just include the function code and then call the function &lt;?php relativeTime(&#039;TIME&#039;); ?&gt;.

You might be having problems because PHP&#039;s strtotime doesn&#039;t understand the string you&#039;re passing in (it thinks the format is m/d/y). Sorry!</description>
		<content:encoded><![CDATA[<p>Please be patient, I don&#8217;t mind helping, but I have a lot of things going on right now that take up a lot of my time.</p>
<p>This is just a function to display/return a string that contains the relative time to the current time. It does nothing such as inserting data into a database.</p>
<p>You would just include the function code and then call the function &lt;?php relativeTime(&#8216;TIME&#8217;); ?&gt;.</p>
<p>You might be having problems because PHP&#8217;s strtotime doesn&#8217;t understand the string you&#8217;re passing in (it thinks the format is m/d/y). Sorry!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kristian</title>
		<link>http://dev-tips.com/featured/creating-a-relative-time-function#comment-1065</link>
		<dc:creator>Kristian</dc:creator>
		<pubDate>Sun, 08 Nov 2009 00:47:58 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=516#comment-1065</guid>
		<description>Well apparently this is not a site which answers people&#039;s questions very good huh.

Don&#039;t post something like this is in the future if you can&#039;t even help people out here.</description>
		<content:encoded><![CDATA[<p>Well apparently this is not a site which answers people&#8217;s questions very good huh.</p>
<p>Don&#8217;t post something like this is in the future if you can&#8217;t even help people out here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kristian</title>
		<link>http://dev-tips.com/featured/creating-a-relative-time-function#comment-1052</link>
		<dc:creator>Kristian</dc:creator>
		<pubDate>Fri, 06 Nov 2009 02:03:02 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=516#comment-1052</guid>
		<description>Awesome!

But how come it doesn&#039;t count the days and the hours right? Here in Denmark the timezone is different from you. Here it&#039;s d/m/y H:i:s

Could use some help here.

I think, it would be appreciated if you could explain how to implement this properly. Because I really see that it&#039;s a pain in the a** if you don&#039;t really know how to call the function correctly. And the time inserted and selected from the database.

I would love to use this function, but it seems to me that the days and hours is totally wrong, well for me it is.

Help would be appreciated :)</description>
		<content:encoded><![CDATA[<p>Awesome!</p>
<p>But how come it doesn&#8217;t count the days and the hours right? Here in Denmark the timezone is different from you. Here it&#8217;s d/m/y H:i:s</p>
<p>Could use some help here.</p>
<p>I think, it would be appreciated if you could explain how to implement this properly. Because I really see that it&#8217;s a pain in the a** if you don&#8217;t really know how to call the function correctly. And the time inserted and selected from the database.</p>
<p>I would love to use this function, but it seems to me that the days and hours is totally wrong, well for me it is.</p>
<p>Help would be appreciated <img src='http://dev-tips.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Jørgensen</title>
		<link>http://dev-tips.com/featured/creating-a-relative-time-function#comment-1051</link>
		<dc:creator>Brian Jørgensen</dc:creator>
		<pubDate>Thu, 05 Nov 2009 23:10:02 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=516#comment-1051</guid>
		<description>I&#039;m very sorry if I posted so much. But, oh dear, after such long time I finally worked it out.

Anyway, thanks a lot for this very usefull script.</description>
		<content:encoded><![CDATA[<p>I&#8217;m very sorry if I posted so much. But, oh dear, after such long time I finally worked it out.</p>
<p>Anyway, thanks a lot for this very usefull script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Jørgensen</title>
		<link>http://dev-tips.com/featured/creating-a-relative-time-function#comment-1050</link>
		<dc:creator>Brian Jørgensen</dc:creator>
		<pubDate>Thu, 05 Nov 2009 22:01:56 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=516#comment-1050</guid>
		<description>Someone please help me out here? It&#039;s just not that easy it seems.</description>
		<content:encoded><![CDATA[<p>Someone please help me out here? It&#8217;s just not that easy it seems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Jørgensen</title>
		<link>http://dev-tips.com/featured/creating-a-relative-time-function#comment-1049</link>
		<dc:creator>Brian Jørgensen</dc:creator>
		<pubDate>Thu, 05 Nov 2009 20:35:05 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=516#comment-1049</guid>
		<description>Hmm seems like i still got some problems..

When i post i sets in &quot;now&quot; into the database, but it doesnt update, it just says now all the time. :-/
And when I change my date row in my table to timestamp it just says 0000-00-00 00:00:00...

You know whats wrong?

Yeah i know i have to sanitize the inputs, but its a quick code for a test to this function..</description>
		<content:encoded><![CDATA[<p>Hmm seems like i still got some problems..</p>
<p>When i post i sets in &#8220;now&#8221; into the database, but it doesnt update, it just says now all the time. :-/<br />
And when I change my date row in my table to timestamp it just says 0000-00-00 00:00:00&#8230;</p>
<p>You know whats wrong?</p>
<p>Yeah i know i have to sanitize the inputs, but its a quick code for a test to this function..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drew Douglass</title>
		<link>http://dev-tips.com/featured/creating-a-relative-time-function#comment-1048</link>
		<dc:creator>Drew Douglass</dc:creator>
		<pubDate>Thu, 05 Nov 2009 20:21:42 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=516#comment-1048</guid>
		<description>Glad you found it out, but be sure to sanitize any user input!</description>
		<content:encoded><![CDATA[<p>Glad you found it out, but be sure to sanitize any user input!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Jørgensen</title>
		<link>http://dev-tips.com/featured/creating-a-relative-time-function#comment-1047</link>
		<dc:creator>Brian Jørgensen</dc:creator>
		<pubDate>Thu, 05 Nov 2009 20:16:53 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=516#comment-1047</guid>
		<description>Okay, I found out.. 

Thanks so much for this!</description>
		<content:encoded><![CDATA[<p>Okay, I found out.. </p>
<p>Thanks so much for this!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
