Is there an easy way in python to transform a string representation of a date interval:
P1M
To a timestamp or a datetime object?
Basically I need to work with date intervals according to this ISO: http://en.wikipedia.org/wiki/ISO_8601
Something similar to http://php.net/manual/en/class.dateinterval.php
There appears to be a third-party module called isodate that may do what you want:
You can also convert this object into a
datetime.timedeltaobject if necessary (providing astartorendparameter so that the proper duration can be calculated in terms of the provided date):