<?xml version="1.0" encoding="UTF-8"?>
<posts type="array">
  <post>
    <author>Simon Schoeters</author>
    <content>&lt;p&gt;The following returns the amount of days in a given year and month, including leap years.&lt;/p&gt;

&lt;samp&gt;(Date.new(year, 12, 31) &lt;&lt; (12-month)).day&lt;/samp&gt;

&lt;p&gt;The beauty of Ruby.&lt;/p&gt;

&lt;p&gt;Credits to &lt;span class="vcard"&gt;&lt;span class="fn"&gt;Tim Morgan&lt;/span&gt;&lt;/span&gt; for his &lt;a href="http://snippets.dzone.com/posts/show/4397" class="ext"&gt;snippet&lt;/a&gt;.&lt;/p&gt;

</content>
    <created-at type="datetime">2010-01-31T23:37:42+01:00</created-at>
    <id type="integer">65</id>
    <location-id type="integer">8</location-id>
    <permalink>ruby-days-in-month</permalink>
    <title>How many days in a month</title>
    <updated-at type="datetime">2010-01-31T23:39:59+01:00</updated-at>
  </post>
</posts>
