<?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: Using DateInterval class in PHP</title>
	<atom:link href="http://blog.felixdv.com/2008/06/02/using-dateinterval-class-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.felixdv.com/2008/06/02/using-dateinterval-class-in-php/</link>
	<description>PHP om nom nom</description>
	<lastBuildDate>Fri, 09 Jul 2010 20:12:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: alan</title>
		<link>http://blog.felixdv.com/2008/06/02/using-dateinterval-class-in-php/comment-page-1/#comment-939</link>
		<dc:creator>alan</dc:creator>
		<pubDate>Mon, 07 Sep 2009 21:27:14 +0000</pubDate>
		<guid isPermaLink="false">http://felix.phpbelgium.be/blog/?p=115#comment-939</guid>
		<description>Thanks for the article, and thanks pcguru for the comment. I couldn&#039;t work out how to add hours but now I see
$d-&gt;add(new DateInterval(&#039;PT2H&#039;));

:D</description>
		<content:encoded><![CDATA[<p>Thanks for the article, and thanks pcguru for the comment. I couldn&#8217;t work out how to add hours but now I see<br />
$d-&gt;add(new DateInterval(&#8216;PT2H&#8217;));</p>
<p>:D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 肉とご飯と甘いもの @ sotarok</title>
		<link>http://blog.felixdv.com/2008/06/02/using-dateinterval-class-in-php/comment-page-1/#comment-926</link>
		<dc:creator>肉とご飯と甘いもの @ sotarok</dc:creator>
		<pubDate>Sun, 19 Jul 2009 03:10:29 +0000</pubDate>
		<guid isPermaLink="false">http://felix.phpbelgium.be/blog/?p=115#comment-926</guid>
		<description>&lt;strong&gt;[PHP] PHP 5.3 の DateTime オブジェクト関連の便利な新機能...&lt;/strong&gt;

 また PHP 5.3 ネタですが :) DateTime オブジェクトにいくつか機能が加わりましたので、紹介したいと思います。 DateInterval PHP: DateInterval - Manual 「絶対的な日付」ではなく、「相対的な日にち...</description>
		<content:encoded><![CDATA[<p><strong>[PHP] PHP 5.3 の DateTime オブジェクト関連の便利な新機能&#8230;</strong></p>
<p> また PHP 5.3 ネタですが :) DateTime オブジェクトにいくつか機能が加わりましたので、紹介したいと思います。 DateInterval PHP: DateInterval &#8211; Manual 「絶対的な日付」ではなく、「相対的な日にち&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles</title>
		<link>http://blog.felixdv.com/2008/06/02/using-dateinterval-class-in-php/comment-page-1/#comment-916</link>
		<dc:creator>Charles</dc:creator>
		<pubDate>Thu, 11 Jun 2009 18:06:03 +0000</pubDate>
		<guid isPermaLink="false">http://felix.phpbelgium.be/blog/?p=115#comment-916</guid>
		<description>Thanks for the helpful article. It got me unstuck (for now, anyway :) ).

Here&#039;s an simple example of using DateTime, DateInterval, and DatePeriod together:

$dt       = new DateTime();
$interval = new DateInterval(&#039;P1M&#039;);
$period   = new DatePeriod($dt, $interval, 12);
foreach ($period as $each) {
    echo $each-&gt;format(&#039;Y-m-d&#039;) . &#039;&#039;;
}</description>
		<content:encoded><![CDATA[<p>Thanks for the helpful article. It got me unstuck (for now, anyway :) ).</p>
<p>Here&#8217;s an simple example of using DateTime, DateInterval, and DatePeriod together:</p>
<p>$dt       = new DateTime();<br />
$interval = new DateInterval(&#8216;P1M&#8217;);<br />
$period   = new DatePeriod($dt, $interval, 12);<br />
foreach ($period as $each) {<br />
    echo $each-&gt;format(&#8216;Y-m-d&#8217;) . &#8221;;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pcguru</title>
		<link>http://blog.felixdv.com/2008/06/02/using-dateinterval-class-in-php/comment-page-1/#comment-838</link>
		<dc:creator>pcguru</dc:creator>
		<pubDate>Sun, 15 Mar 2009 01:49:10 +0000</pubDate>
		<guid isPermaLink="false">http://felix.phpbelgium.be/blog/?p=115#comment-838</guid>
		<description>Scrap that comment, it works fine.

$finished-&gt;add(new DateInterval(&#039;PT&#039;.$secondsToGo.&#039;S&#039;));</description>
		<content:encoded><![CDATA[<p>Scrap that comment, it works fine.</p>
<p>$finished-&gt;add(new DateInterval(&#8216;PT&#8217;.$secondsToGo.&#8217;S'));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pcguru</title>
		<link>http://blog.felixdv.com/2008/06/02/using-dateinterval-class-in-php/comment-page-1/#comment-837</link>
		<dc:creator>pcguru</dc:creator>
		<pubDate>Sun, 15 Mar 2009 01:33:16 +0000</pubDate>
		<guid isPermaLink="false">http://felix.phpbelgium.be/blog/?p=115#comment-837</guid>
		<description>Nice to find some information on these classes!

They are really hard to work with right now, not only because of the lack of docs.

For example in my app I have an interval calculated in seconds, that I need to add to a DateTime object. But I can&#039;t create a DateInterval from seconds, I have to split those seconds into minutes, hours, days etc to form a valid interval string. Ouch.

I hope they continue to evolve.</description>
		<content:encoded><![CDATA[<p>Nice to find some information on these classes!</p>
<p>They are really hard to work with right now, not only because of the lack of docs.</p>
<p>For example in my app I have an interval calculated in seconds, that I need to add to a DateTime object. But I can&#8217;t create a DateInterval from seconds, I have to split those seconds into minutes, hours, days etc to form a valid interval string. Ouch.</p>
<p>I hope they continue to evolve.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
