<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iDimensionz &#187; 5.3</title>
	<atom:link href="http://www.idimensionz.com/blog/tag/53/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.idimensionz.com/blog</link>
	<description>Professional web site programming and design.  Affordable web site hosting.</description>
	<lastBuildDate>Fri, 24 Apr 2009 19:07:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>New Date and Time Functions in PHP 5.3.0</title>
		<link>http://www.idimensionz.com/blog/2009/03/30/new-date-and-time-functions-in-php-530/</link>
		<comments>http://www.idimensionz.com/blog/2009/03/30/new-date-and-time-functions-in-php-530/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 13:09:04 +0000</pubDate>
		<dc:creator>iDimensionz Admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[5.3]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.idimensionz.com/blog/?p=34</guid>
		<description><![CDATA[While browsing through the PHP documentation, I came across some very useful new functions available in PHP 5.3.0 for working with dates and times.  One of my current projects requires working with a date range.  There are various ways to do this.  I was originally going to use MySQL&#8217;s DATE_DIFF() function to calculate the number [...]]]></description>
			<content:encoded><![CDATA[<p>While browsing through the PHP documentation, I came across some very useful new functions available in PHP 5.3.0 for working with dates and times.  <span id="more-34"></span>One of my current projects requires working with a date range.  There are various ways to do this.  I was originally going to use MySQL&#8217;s DATE_DIFF() function to calculate the number days in the range but connecting to the database for this functionality was obviously not the best solution.  I browsed the PHP documentation and found a date_diff() function that is part of PHP 5.3.0.  This function is just an alias of the DateTime class&#8217;s diff() function and returns a DateInterval instance which can be used to format the result.  The DateTime class is part of the <a title="PHP Date and Time extension" href="http://php.net/datetime" target="_blank">ext/date</a> extension.  I&#8217;m looking forward to the stable 5.3.0 release to be able to take advantage of this functionality.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.idimensionz.com/blog/2009/03/30/new-date-and-time-functions-in-php-530/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

