- Version 4.0.11
- Version 4.0.10
- Version 4.0.9
- Version 4.0.8
- Version 4.0.7
- Version 4.0.6
- Version 4.0.5
- Version 4.0.4
- Version 4.0.3
- Version 4.0.2
- Version 4.0.0
- Release Date: 2017/01/08
- Zipped Version: Download 4.0.11
- #370 Cannot format colloquial date when a time component value is zero and
allowedComponents
does not contains lower time components (ie. cannot print "today" when set formatter to accept onlyallowedComponents = [.day]
and day difference between dates is zero). - #371
DateInRegionFormatter
crashes with any non-default.allowedComponents
.
- #365 Brazilian Portuguese support (thanks to @ipedro)
- Release Date: 2016/12/21
- Zipped Version: Download 4.0.10
- #364 Fixes Japanaese translation
- Release Date: 2012/12/20
- Zipped Version: Download 4.0.9
- #353 Timezone, region and locale are now public accessible from Region (read-only)
- #354 Added Vietnamese translation (thanks to @solbadguyky)
- #355 Added Japanese translation (thanks to @bati668)
- #360 Catalan translation
- #359 Wrong colloquial string ("just now") when gap between two dates are expressed in minutes and the left comparing operand is a future date.
- #349 Fixed an issue with ISO8601Formatter where we need to manually set the locale to "en_US_POSIX" in order to get correct results (ie. in 12/24h cases).
- #350 Fixed relevant time formatting for Danish translation
- #358 Missing German translation strings are now added.
- #361 Minor fixes for unit test reports
- #362 Added tests for iSO8601 formatter with .internetDateTimeExtended.
- #363 Fallback to main language code when language code + region code is not available (ie. "fr-BE" fall in "fr-FR").
- Release Date: 2012/12/01
- Zipped Version: Download 4.0.8
- #214, Added
.next(day:)
both forDate
andDateInRegion
to get the next weekday (ie. "next friday from today") after specified date. - #310 Added static func
.dates(between:and:increment:)
both forDate
andDateInRegion
which allows to enumerate dates between two interval with given increment in term ofDateComponents
. - #337 DateComponents now implements
.in()
func you can use to express an interval (like usingTimeInterval
) in terms of other time units (for examplelet x = 120.seconds.in(.minute)
will return 2 minutes). - #348
DateComponents
can now be merged using&&
operator. So if you haveA = 1.hours, 3.minutes, 2.seconds
andB = 1.year, 40.minutes
, usinglet C = A && B
you will get a newDateComponents
instance with:C = 1.year, 1.hours, 43.minutes, 2.seconds
. - #340, #320 Added Spanish support (thanks to @Sepho and @adrimarti).
- #323, Added Korean support (thanks to @KisukPark).
- #328, Added Slovak support (thanks to @beretis).
- #329, Added Danish support (thanks to @emilpedersen).
- #331, Added Czech support (thanks to @rbukovansky).
- #187, Added
.startWeek
(get the first day of the sender's week) and.endWeek
(get the last day of the sender's week) both forDate
andDateInRegion
- #344
.inDateDefaultRegion()
is also used as standard value for region in.add()
function of theDate
object - #339 Fixed an issue with reverse interval fatal error when subtracting two dates
- #317 Fixed an issue with language transations. Now all translations are specified in term of language+region settings (ie.
en-US
and not onlyen
). All translation files were updated to reflect this new behaviour. - #346 Workaround to fix a rounding problem when comparing two
Date
orDateInRegion
in terms of.nanosecond
granularity. Now the comparision result is correct. - #315, Fixed an issue with
Date().add(components:)
and daylight saving dates. - #319, Added missing translation for german loc (thanks to @jaweinkauff)
Release Date: 2012/12/20 Zipped Version: Download
- #306 Fixed a date ordering issue with time interval
- #308 Added singular component for
.year,.month,.day,.hour,.minute,.second
time components - #309 Added Traditional Chinese support (thanks to @rynecheow)
- #314 Restored French translation strings
- Release Date: 2012/10/17
- Zipped Version: Download 4.0.8
- #303
Date.defaultRegion()
is now set toRegion.Local()
as specified in doc (notRegion.GMT()
) - #302 Fixed an issue with colloquial dates and future dates; also fixed an issue when reporting colloquial differences expressed in weeks
- #301 Add
.locale
property inISO8601DateTimeFormatter
- Release Date: 2012/10/10
- Zipped Version: [Download 4.0.5]
- #284 Fixed a crash with .colloquial() function and # weeks evaluation
- #287 Added Simplified Chinese translation (thanks to @codingrhythm)
- #288 Added Indonesian translation (thanks to @suprie)
- #286 Added French translation (thanks to @pierrolivier)
- #293 Added .withInternetDateTimeExtended as options of ISO8601DateTimeFormatter
- #292 .setDefaultRegion and .defaultRegion are now static func/prop of the Date object
- Release Date: 2012/10/04
- Zipped Version: Download 4.0.4
- #277: Remove
throws
from Date.add(components:) in Date+Math.swift - #276: Remove Development team from framework
- Release Date: 2012/10/03
- Zipped Version: Download 4.0.3
Changes:
- #271: Added fallback to english translation when required translation is not available for colloquial functions
- #112: Fixed an issue when optimization level is
-fast
- #269: Fixed unnecessary strings printed in console when using
.timeComponents()
function - #266: Removed unnecessary
Region.copy()
function - #267:
.absoluteDate
is now a public property forDateInRegion
- #268: Added new german translation to
SwiftDate.bundle
- #272: Failed to calculate a colloquial date when diff in seconds = 0. It throw a
.FailedToCalculate
exception. - #274: Fixed a bug with padding in Time Components formatter. Now SwiftDate uses
DateComponentsFormatter
internally; old timeComponents/timeComponentsSinceNow (in Date and DateInRegion) are now deprecated (there are other functions with the same name which takes aComponentsFormatterOptions
struct as input). Also.string()
function inTimeInterval
is now replaced by a counterpart which takeComponentsFormatterOptions
struct. - #275:
.formatter.useSharedFormatters
inDateInRegion
is now accessible so, if strictly needed user can user a custom instance of DateTime Formatters per singleDateInRegion
.
-
Release Date: 2012/09/30
-
Zipped Version: Download 4.0.2
-
Minor fix for cocoapods compatibility (SwiftDate.bundle was not copied)
- Major rewrite, fully compatible with Swift 3.0
- Function names and parameter now fully adopt Swift conventions (we should make a complete list of changes soon)
- Various fixes with locale management and timezones
- Web site and complete documentation
- Jazzy support
- Unit tests now compiles under XCode 8 and Swift 3