SwiftDate Versions Save

🐔 Toolkit to parse, validate, manipulate, compare and display dates, time & timezones in Swift.

7.0.0

1 year ago

Released on 2022-09-12

CHANGES

  • Removed RelativeTimeFormatter and replaced with built-in system class
  • Fixed compatibility issues on SPM

This version require at least Swift 5.5, iOS 13+, macOS 10.15+, watchOS 6+, tvOS 13+.

6.3.1

3 years ago

Released on 2020-11-22

CHANGES

  • #763 [FIX] Minimum deployment target for iOS is set to 9.0 and tvOS to 9 for Carthage builds

6.3.0

3 years ago

Released on: 2020-11-16

CHANGES

  • #753 [NEW]: Added added .dateMixed format options to toString() method to format dateTime with differing date and time styles.
  • #751 [NEW]: Added support for SPM 5.3 and Package.swift to support Xcode 12 and iOS9+.
  • #728 [NEW]: Added support Swift Package .automatic, .static and .dynamic linking support in order to share same package between multiple targets.
  • #727 [NEW] Added .asLocale() to String object to transform identifier in an NSLocale objectS.
  • #762 [FIX]: CocoaPods: Update podspec to iOS9 in order to fix Xcode 12 warning.
  • #760 [FIX]: Minor fixes to documentation and updated to 6.3.0.
  • #752 [FIX]: Avoid force unwrap in sharedOrdinalNumberFormatter.

6.2.0

3 years ago

Released on: 2020-09-16

CHANGES

  • [NEW #694] Added support forDate position between 2 dates range (positionInRange)
  • [NEW #695] Added support for Swift Package Manager (SwiftPM) 5.1
  • [NEW #742] Added support for non latin Serbian localization
  • [FIX #749] Fixed a crash with force unwrap in TimeInterval+Formatter
  • [FIX #726] Fixed date comparison using the .isSameMonth option
  • [FIX #725] Fixed wrong timezone while setup a different SwiftDate.defaultRegion
  • [FIX #710] Fixed grammar for Slovak translation
  • [FIX #708] Fix typo in customFormatter of DataRepresentable
  • [FIX #707] Fixes traditional Chinese translation
  • [FIX #700] Fixed wrong behavior of dateAt(.startOfMonth)

6.1.0

4 years ago

Released on: 2019-09-13

CHANGES

  • #682 - [FIX] Fixed Japanese relative datetime formatting.
  • #693 - [FIX] Fixed wrong result when subtracting DateInRegion dates.
  • #676 - [NEW] Added difference() and differences() methods to get the difference between two dates expressed in variuous time components with respect to the other date as a positive integer.
  • #676 - [NEW] Added dateAt(dayOfMonth:monthNumber:yearNumber:) method to returns the date on the given day of month preserving smaller components.
  • #676 - [NEW] Added dateAfter(weeks:on:) method to returns the date after given number of weeks on the given day of week.
  • #676 - [NEW] Added next(:withWeekOfMonth:andMonthNumber:) method to returns next date with the given weekday and the given week number.
  • #676 - [NEW] Added next(dayOfMonth:monthOfYear:) method to returns the next day of month preserving smaller components (hour, minute, seconds).

6.0.3

5 years ago

Released on: 2019-05-12

CHANGES

  • #670 [FIX] FixedtoISODate() which ignores explicitly passed Region instance. Now if region is passed it overrides any parsed timezone from ISO source string.
  • #668 [FIX] Fixed missing zero padding with toClock() on the first digit.
  • #652 [FIX] Resolved slow compiling times: moved RelativeFormatter's languages files to json. This currently breaks Linux compatibility because SPM does not support bundled resources.
  • #666 [NEW] Added dateAt(weekdayOrdinal:weekday:monthNumber:yearNumber:) nextWeekday() to both Date and DateInRegion

6.0.2

5 years ago

Released on: 2019-04-16

Changes

  • #656 Fixed for ISOFormatter options withoutTZSeparators which produces empty string results if not paired with withInternetDateTimeExtended
  • #653 TimeInterval.ComponentsFormatterOptions reverted to public visibility
  • #635 Better handling for language fallback in relative date formatter
  • #654 Fixed an issue when compiling library on Linux using round function (glib/darwin)
  • #658 Fixed httpFormat format which are not valid for Unicode Technical Reference #35

6.0.1

5 years ago

Released on: 2019-03-28

Changes

  • #650 Fixes for RelativeFormatter.Style visibility outside the library

6.0.0

5 years ago

Released on: 2019-03-27

Changes

  • #648 Swift 5 / Xcode 10.2 Compatibility
  • #642 Wrong toISO() output parsing date string from non Gregorian calendars
  • #643 Parsing ISO-8601 formatted week dates fails
  • #646 Relative date formatting never returns the "previous" value (now supports past/future/current)
  • #638 Added RoundingStrategy for RelativeFormatter.Gradation.Rule
  • #647 HTTP Header formatter fix

5.1.0

5 years ago

Released on: 2019-01-20

Changelog

  • #622 Added enumeration methods to get dates for a specified weekday in a date range (see 3.12 section in documentation)
  • #634 Added Month and Year structures with circular operation support (ie. you can remove two days from monday and you got saturday or add two months to november to get january). All of these structures along with Weekday support localized display of the represented value.
  • #623 Fixed ambiguos operator error when subtracting a Date with TimeInterval
  • #626 Fixed ISO 8601 output when current calendar is not Gregorian
  • #627 Added Asia/Saigon in Zones enumeration
  • #631 Fixed RealtiveFormtter's toRelative() methods when no quantifier is available
  • #629 Fixed heuristic date guessing inside the formatter which prevents discovering wrong date
  • #628 Fixed ISO8601 output when printing date along with complete time
  • #619 Fixed a bug with isInRange where orEqual parameter is not passed correctly
  • #610 Refactoring to remove un-necessary self