SwiftDate
SwiftDate copied to clipboard
🐔 Toolkit to parse, validate, manipulate, compare and display dates, time & timezones in Swift.
I just can't figure out how to customize RelativeFormatter output. Instead of "now" I would like "right now". Documentation here: https://github.com/malcommac/SwiftDate/blob/master/Documentation/5.Date_Formatting.md#colloquial points to dead link and doc for relative formatter...
Ref: https://github.com/malcommac/SwiftDate/issues/690
I'm using the 6.3.1 version on Xcode 12.4 with iOS 14 ## My expectation: Print local timestamp (my location is Australia) ```swift let date = Date(timeIntervalSince1970: timestamp / 1000.0) return...
I was under the impression the `DateInRegion.day` will return the day of the date in a certain region. However, when I tried it, it always returned the day in UTC,...
Create a locale id fallback rule to support different locale format as we can as possible: collatorIdentifier: zh-Hant-TW -> zh_Hant_TW -> zh-Hant -> zh_Hant -> zh -> en
``` error: Introduction.xcplaygroundpage:2:8: error: no such module 'SwiftDate' import SwiftDate ^ ```
Any idea's as to why when I try this out in playground it say SwiftDate module not found on the first line of import?
I already posted this bug on StackOverflow [Swift Package Manager - Unexpected duplicate tasks: Target AppTests (project App) has copy command - SwiftDate](https://stackoverflow.com/questions/64129750/swift-package-manager-unexpected-duplicate-tasks-target-apptests-project-app). I don't really know if SwiftDate SPM...
Fixing issue #696 - `.toFloorSecs(_)`, `.toCeilSecs(_)`, `.toSecs(_)`, `.to1Sec(_)` and `.to1min(_)` are added to the `RoundDateMode`s, to be used by `dateRoundedAt(_: RoundDateMode)`