SwiftDate
SwiftDate copied to clipboard
🐔 Toolkit to parse, validate, manipulate, compare and display dates, time & timezones in Swift.
I have a date I want to compare to with the current date. If it's a year I want it to say "1 year ago", if it's month then I...
After I added SwiftDate with Xcode and started to build a project I got an error: ```Swift Command Ld failed with a nonzero exit code ``` And the build wasn't...
Hello, I am parsing dates in my app using this library and I've just noticed an issue when my device is in 12-Hour Time mode. The API I am working...
I faced problem as in title, when I call .toRelative(since:style:locale:) on my date which as string is f.e. "2022-06-07 13:12:06 +0000" my app crashes. Crash stack from Console app prints:...
I recently noticed the following error in xcode. It doesn't seem to cause any breakage, my app builds, runs and tests without issue. I think it's related to SwiftDate because...
I wish to format a date in it's local timezone, however formatting the date will not preserve the region/timezone: ```swift DateInRegion("2020-08-26T17:00:00+10:00") ``` Output: ``` (lldb) po DateInRegion("2020-08-26T17:00:00+10:00")?.region ▿ Optional ▿...
For example, if their date is "2022-02-27T16:00:00.000Z", after will covert to "1479-02-27 16:00:00.000". It's should not be reduced with 543 years, It's should be plus with 543years. Can you help...
IOS: 15.1 on a real device XCode: 13.1 SwiftDate: 6.3.1 - installed via CocoaPods Trying to understand the exact behaviour of getInterval() to calculate the difference in calendar days between...