<?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: Show time left with PHP</title>
	<atom:link href="http://www.999tutorials.com/php/show-time-left-with-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.999tutorials.com/php/show-time-left-with-php/</link>
	<description>999Tutorials.com - Your Tutorial Spot</description>
	<lastBuildDate>Fri, 05 Mar 2010 07:35:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: sanjay bagul</title>
		<link>http://www.999tutorials.com/php/show-time-left-with-php/comment-page-1/#comment-1523</link>
		<dc:creator>sanjay bagul</dc:creator>
		<pubDate>Thu, 27 Aug 2009 13:40:40 +0000</pubDate>
		<guid isPermaLink="false">http://new.999tutorials.com/?p=27#comment-1523</guid>
		<description>thanks its simple but good script</description>
		<content:encoded><![CDATA[<p>thanks its simple but good script</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xxxxx.cm</title>
		<link>http://www.999tutorials.com/php/show-time-left-with-php/comment-page-1/#comment-1353</link>
		<dc:creator>xxxxx.cm</dc:creator>
		<pubDate>Wed, 19 Aug 2009 10:17:30 +0000</pubDate>
		<guid isPermaLink="false">http://new.999tutorials.com/?p=27#comment-1353</guid>
		<description>sorry for my previous comment, I am not a coder and realy don&#039;t know what makes code good - that is why I was angry.</description>
		<content:encoded><![CDATA[<p>sorry for my previous comment, I am not a coder and realy don&#8217;t know what makes code good &#8211; that is why I was angry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.999tutorials.com/php/show-time-left-with-php/comment-page-1/#comment-1183</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 11 Aug 2009 12:24:08 +0000</pubDate>
		<guid isPermaLink="false">http://new.999tutorials.com/?p=27#comment-1183</guid>
		<description>A little bit cleaner than the example we provided. Thanks!</description>
		<content:encoded><![CDATA[<p>A little bit cleaner than the example we provided. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Roberts</title>
		<link>http://www.999tutorials.com/php/show-time-left-with-php/comment-page-1/#comment-1075</link>
		<dc:creator>Jon Roberts</dc:creator>
		<pubDate>Tue, 04 Aug 2009 21:43:05 +0000</pubDate>
		<guid isPermaLink="false">http://new.999tutorials.com/?p=27#comment-1075</guid>
		<description>I used a bit of this code for a CakePHP project:

class countdownComponent extends Object {
	
	function timeleft($until = &#039;Dec 25 2012 00:00:00&#039;) {
		$now = strtotime(&#039;now&#039;);
		$deadline = strtotime($until);
		$difference = $deadline - $now;
		
		if ($difference &gt; 0) {
			$timeleft = array(
				&#039;days&#039; =&gt; floor($difference/60/60/24),
				&#039;hours&#039; =&gt; $difference/60/60%24,
				&#039;minutes&#039; =&gt; $difference/60%60,
				&#039;seconds&#039; =&gt; $difference%60,
			);
		} else {
			$timeleft = array(
				&#039;days&#039; =&gt; 0,
				&#039;hours&#039; =&gt; 0,
				&#039;minutes&#039; =&gt; 0,
				&#039;seconds&#039; =&gt; 0
			);
		}
		
		return $timeleft;
	}
	
}</description>
		<content:encoded><![CDATA[<p>I used a bit of this code for a CakePHP project:</p>
<p>class countdownComponent extends Object {</p>
<p>	function timeleft($until = &#8216;Dec 25 2012 00:00:00&#8242;) {<br />
		$now = strtotime(&#8216;now&#8217;);<br />
		$deadline = strtotime($until);<br />
		$difference = $deadline &#8211; $now;</p>
<p>		if ($difference &gt; 0) {<br />
			$timeleft = array(<br />
				&#8216;days&#8217; =&gt; floor($difference/60/60/24),<br />
				&#8216;hours&#8217; =&gt; $difference/60/60%24,<br />
				&#8216;minutes&#8217; =&gt; $difference/60%60,<br />
				&#8217;seconds&#8217; =&gt; $difference%60,<br />
			);<br />
		} else {<br />
			$timeleft = array(<br />
				&#8216;days&#8217; =&gt; 0,<br />
				&#8216;hours&#8217; =&gt; 0,<br />
				&#8216;minutes&#8217; =&gt; 0,<br />
				&#8217;seconds&#8217; =&gt; 0<br />
			);<br />
		}</p>
<p>		return $timeleft;<br />
	}</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ivy</title>
		<link>http://www.999tutorials.com/php/show-time-left-with-php/comment-page-1/#comment-788</link>
		<dc:creator>ivy</dc:creator>
		<pubDate>Sun, 12 Jul 2009 07:50:42 +0000</pubDate>
		<guid isPermaLink="false">http://new.999tutorials.com/?p=27#comment-788</guid>
		<description>thanks it helps me a little.</description>
		<content:encoded><![CDATA[<p>thanks it helps me a little.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.999tutorials.com/php/show-time-left-with-php/comment-page-1/#comment-485</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 17 Jun 2009 12:55:36 +0000</pubDate>
		<guid isPermaLink="false">http://new.999tutorials.com/?p=27#comment-485</guid>
		<description>It&#039;s nothing beautiful I know. It&#039;s more a way to give some people an introduction on how to work with this kind of functions.</description>
		<content:encoded><![CDATA[<p>It&#8217;s nothing beautiful I know. It&#8217;s more a way to give some people an introduction on how to work with this kind of functions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xxxxx</title>
		<link>http://www.999tutorials.com/php/show-time-left-with-php/comment-page-1/#comment-407</link>
		<dc:creator>xxxxx</dc:creator>
		<pubDate>Thu, 11 Jun 2009 06:10:01 +0000</pubDate>
		<guid isPermaLink="false">http://new.999tutorials.com/?p=27#comment-407</guid>
		<description>sorry to say but, what a shitty code !!</description>
		<content:encoded><![CDATA[<p>sorry to say but, what a shitty code !!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
