The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
# Release 2.0.0
- Added a new init for DateComponents @ScottSymes-ANZ
- Changed `ISO8601DurationFormatter.dateComponents(from string: String)` to throw an error, if the input could not be parsed @ScottSymes-ANZ
- Added `ISO8601DurationFormatter.string(from dateComponents: DateComponents)` to complete the implementation of `Formatter` @ScottSymes-ANZ
- Added the possibility to parse negative durations according to ISO8601-2:2019 @ScottSymes-ANZ
- Added the possibility to omit zero or nil properties from `DateComponents`, so they won't be included in the resulting string @ScottSymes-ANZ
- Improved formatter and tests. Thanks to @michalsrutek
- Added functionality to convert DateComponent to String
```swift
let dateComponents = DateComponents(year: 6,
month: 2,
day: 2,
hour: 4,
minute: 44,
second: 22,
weekOfYear: 2)
let ISO8601DurationString = dateComponents.toISO8601Duration()
print(ISO8601DurationString) // P6Y2M2W2DT4H44M22S
```
First release for production based on Prelease2
3 years ago