Closed MetRonnie closed 4 years ago
>>> from metomi.isodatetime.data import Duration >>> A = Duration(days=9) >>> print(A.to_weeks().to_days()) P7D
Tested on 2.0.1
This is not a bug; a duration in weeks has a maximum precision of 7 days in ISO 8601. I will update the docstring in the method to note this
Tested on 2.0.1