Releases: malcommac/SwiftDate
Releases · malcommac/SwiftDate
SwiftDate 5.0.13
Released on: 2018-10-28
Changes
- #555 Deprecated
toString()
ofTimeInterval/Double
to usetoIntervalString()
(in order to avoid ambiguity) - #611 Removed
arc4random_uniform
to use new Swift 4.2 random APIs - #568 Add Linux support to SwiftDate (see notices on documentation)
SwiftDate 5.0.12
Released on: 2018-10-26
Changes
- #521
weekdayName()
,eraName()
,quarterName()
allows to specify locale overwrite to region's locale - #596 Refactoring for
hashValue
inDateInRegion
, fixed compiler error on watchOS target - #598 Silenced Xcode 'Conversion to Swift 4.2 is available' warning
- #608 Fixed crash when using
quarterName(.short)
with a Date in 4th quarter of the year
SwiftDate 5.0.11
Released on: 2018-10-26
Changes
- #597 Differences between two dates as
DateComponents
viacomponentsSince()
method inDateInRegion
- #602 Crash in
RelativeFormatter
when gradation was not found - #606 Added
ms
parameter todateBySet()
function to alter the milliseconds value of a date - #607 Fixed ambiguity for
toDate(_:region:)
with multiple formats bug - #609
isInRange
ignores granularity parameter when used with plainDate
SwiftDate 5.0.10
SwiftDate 5.0.9 (Swift 4.2+)
Released on: 2018-09-18
Swift: 4.x (4.0 and 4.2 supported)
CHANGES
FIXES
- #592 Added
.calendar
and.locale
property to configureComponentsFormatterOptions
struct to formatTimeInterval
values. - #588 Fixed some links in Documentation files
- #585 Fixed .quarter property which return always a zero value
- #586 Fixed ISO8601 parser crash with certain string configurations
- #583 Fixed broken links in
Manipulate_Date.md
documentation file - #582 Fixed
Decodable
support forDateInRegion
andcompactMap()
function. - #575 Fallback to language when language+region option for
toRelative()
function does not exists - #573 Fixed
DateInRegion(milliseconds:)
init to work with actual milliseconds values
ADDITIONS
- #574 Added customization via
ComponentsFormatterOptions
object intoString()
ofTimeInterval
formatter (in addition to closure version of the same method)
SwiftDate 5.0.7
Released on: 08/24/2018
Changes
- Added
toUnit()
toTimeInterval
to extract single time component from an interval (as companion oftoUnits()
). - Removed
calendar
argument fromtoUnit()
andtoUnits()
. Value is taken from reference's dateregion.calendar
SwiftDate 5.0.6
Released on: 08/21/2018
Changes
- #580 Restoring in() function for DateInRegion/Date/TimeInterval; added isInside() for Date/DateInRegion
SwiftDate 5.0.5
SwiftDate 5.0.4
Released on: 18/07/2018
Changes
- #559 Fixes for Decodable protocol in DateInRegion/Region on Swift 4.2
SwiftDate 5.0.3
Released on: 2017-07-13
- #560 - Build failed 5.0.2 due to SwiftLint superfluous rules