How to convert string date interval to number of days or seconds (ISO_8601)?
<p>Is there an easy way in python to transform a string representation of a date interval:</p>

<pre><code>P1M
</code></pre>

<p>To a timestamp or a datetime object?</p>

<p>Basically I need to work with date intervals according to this ISO: <a href="http://en.wikipedia.org/wiki/ISO_8601" rel="nofollow">http://en.wikipedia.org/wiki/ISO_8601</a></p>

<p>Something similar to <a href="http://php.net/manual/en/class.dateinterval.php" rel="nofollow">http://php.net/manual/en/class.dateinterval.php</a></p>
