<?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>Fri, 24 May 2013 08:38:13 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Lorna Mitchell's Blog: Locale-Sensitive Dates in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/11347</guid>
      <link>http://www.phpdeveloper.org/news/11347</link>
      <description><![CDATA[<p>
<i>Lorna Mitchell</i> shares a <a href="http://www.lornajane.net/posts/2008/Locale-Sensitive-Dates-in-PHP">quick code snippet</a> she's worked up to make handling local-sensitive dates in PHP a bit easier (via the <a href="http://www.php.net/strftime">strftime</a> function).
</p>
<blockquote>
I needed dates like "Donderdag 23 Oktober", and I was sure PHP should know how to do this without me creating arrays for days of the week and months of the year. With some help from my friend (thanks Derick) I discovered that there is a date function in PHP that takes into account the locale of the script, called strftime.
</blockquote>
<p>
Her code snippet shows how to set the correct local time (in her case, nl_NL with a UTF-8 encoding) and how to return a formatted string based on formatting characters (much like printf/sprintf).
</p>]]></description>
      <pubDate>Wed, 05 Nov 2008 08:48:44 -0600</pubDate>
    </item>
  </channel>
</rss>
