gweis / isodate

ISO 8601 date/time parser
BSD 3-Clause "New" or "Revised" License
148 stars 58 forks source link

Negative duration values #41

Open mvantellingen opened 7 years ago

mvantellingen commented 7 years ago

First of all thanks for this module. I am using it for my soap library (https://github.com/mvantellingen/python-zeep/).

A user reported an issue (https://github.com/mvantellingen/python-zeep/issues/486) that an error occurs with one of the requests he is doing. It turns out that the response is a negative duration value (PT-60S). A quick google turned up some modules (java) which do indeed allow the creation of negative durations. Not sure if it is in the standard or not.

Stephan202 commented 5 years ago

There is precedent for supporting this format; see MomentJS: moment/moment#2955. Our mixed Java-Python team would benefit from this as well.