gweis / isodate

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

Add support for negative duration values in ISO8601 period parsing #59

Closed dgoldsb closed 2 years ago

dgoldsb commented 5 years ago

Fixes #41.

We are using a mixed Java/Python stack, and would benefit from the addition of support for negative duration values in the ISO8601 period parsing. For example, PT6H-30M would correspond to a duration of 05:30:00.

As mentioned in #41, there is a precedent for supporting this format, looking for instance at MomentJS (moment/moment#2955).

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 94.433% when pulling ff458657d6902b3150b0cd022fe266bc348e9e37 on dgoldsb:negative-duration-values into 27cebc56a0f6a900eeb897512879d545095f410b on gweis:master.

dgoldsb commented 2 years ago

Closing this as this module seems unmaintained, and reportedly does not function in Python 3.10.