Releases: kkla320/ISO8601DurationFormatter
Releases · kkla320/ISO8601DurationFormatter
2.0.0
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 ofFormatter
@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
v1.2.1
- Improved formatter and tests. Thanks to @michalsrutek
1.2.0
1.1.0
- Added functionality to convert DateComponent to String
let dateComponents = DateComponents(year: 6,
month: 2,
day: 2,
hour: 4,
minute: 44,
second: 22,
weekOfYear: 2)
let ISO8601DurationString = dateComponents.toISO8601Duration()
print(ISO8601DurationString) // P6Y2M2W2DT4H44M22S
v1.0.1
First release for production based on Prelease2
v1.0.0 Merge remote-tracking branch 'refs/remotes/origin/master'
Prerelease 2
v0.2-alpha Merge remote-tracking branch 'refs/remotes/origin/master'
Prerelease
v0.1-alpha Create LICENSE