Duration and ISO 8601

Bug #1507735 reported by Sebastien CELLES
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dateutil
New
Undecided
Unassigned

Bug Description

Hello,

It will be nice if dateutil could support ISO 8601 duration and return dateutil.relativedelta (not datetime.timedelta)
https://en.wikipedia.org/wiki/ISO_8601#Durations

Kind regards

Revision history for this message
Sebastien CELLES (s-cls) wrote :

see https://pypi.python.org/pypi/iso-8601/0.2.4

Duration time formats of the following forms are also supported:

P1W2DT3H4M5S
Note that support for Year and Month data is not supported, as this does not make sense with python’s timedelta object.

see https://pypi.python.org/pypi/PySO8601/0.1.8
Durations:
Due to the difficult nature of working with calendars, for the moment years specified in the duration format are set to 365 days and months are set to 30 days. This will hopefully be addressed in the near future.

see https://pypi.python.org/pypi/aniso8601/1.0.0
Parse a duration, get a datetime.timedelta

description: updated
description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.