<?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>Wed, 22 May 2013 01:48:31 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Squirrel Hacker Blog: PHP DateTime is missing methods in 5.2]]></title>
      <guid>http://www.phpdeveloper.org/news/14299</guid>
      <link>http://www.phpdeveloper.org/news/14299</link>
      <description><![CDATA[<p>
As <i>SeanJA</i> points out in a new post to his blog, there's two functions that were included in the PHP 5.3 version of the DateTime object in PHp that weren't in the PHP 5.2 version - specifically the get/setTimestamp ones.
</p>
<blockquote>
These are some strange methods to be missing as a lot of people in the PHP world seem to work on Timestamps using these concepts, so you would have thought that php would have included these methods initially. Unfortunately they did not, so here is a fix for that.
</blockquote>
<p>
He provides two pieces of code, one to <a href="http://gist.github.com/349273">replace the setTimestamp</a> function and the other for the <a href="http://gist.github.com/349273">getTimestamp</a> to add in this handy functionality as you might need it.
</p>]]></description>
      <pubDate>Mon, 05 Apr 2010 13:58:26 -0500</pubDate>
    </item>
  </channel>
</rss>
