Convert between ISO-8601 durations strings and Duration values.
Convert from an ISO-8601 duration string to a Duration value.
In case a week duration is given only the days property will be populated with the number of weeks * 7.
Convert a Duration value to an ISO-8601 duration string.
Week durations are not supported, even values with days only will still be serialized as PnD.
Decode an ISO-8601 duration string to a Duration value using fromString.