<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 18 Jun 2013 18:14:50 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Phil Sturgeon: Why PHP DateTime Rocks]]></title>
      <guid>http://www.phpdeveloper.org/news/18311</guid>
      <link>http://www.phpdeveloper.org/news/18311</link>
      <description><![CDATA[<p>
<i>Phil Sturgeon</i> has a new post sharing some of his thoughts on <a href="http://philsturgeon.co.uk/blog/2012/08/why-php-datetime-rocks">why DateTime rocks</a>, the advanced functionality that PHP has to work with dates, times, timezones, etc.
</p>
<blockquote>
DateTime is nothing new, but it's definitely under-used by many. It was made available in PHP 5.2.0 but got some of its best features until PHP 5.3.0. PHP 5.3.0 is pretty old now, but I learned about <a href="http://uk.php.net/manual/en/datetime.createfromformat.php">DateFormat::createFromFormat()</a> after reading a new addition to <a href="http://www.phptherightway.com/#date_and_time">PHP The Right Way: Date and Time</a>.
</blockquote>
<p>
He shares to "offender" examples where using this function allowed him to simplify and reduce the amount of code needed to handle the formatting of a date into a MySQL format and calculating the difference between two time values.
</p>]]></description>
      <pubDate>Thu, 02 Aug 2012 11:41:29 -0500</pubDate>
    </item>
  </channel>
</rss>
