Datez alternatives and similar libraries
Based on the "Date" category.
Alternatively, view Datez alternatives based on common mentions on social networks and blogs.
SwiftDate9.7 0.0 L3 Datez VS SwiftDate🐔 Toolkit to parse, validate, manipulate, compare and display dates, time & timezones in Swift.
Timepiece8.7 0.0 L5 Datez VS TimepieceIntuitive date handling in Swift
Chronology8.3 0.0 Datez VS ChronologyBuilding a better date/time library for Swift
SwiftMoment8.2 0.0 L3 Datez VS SwiftMomentA time and calendar manipulation library.
NSDate-Extensions8.1 0.0 Datez VS NSDate-ExtensionsPractical real-world dates
AFDateHelper8.0 0.0 L2 Datez VS AFDateHelperA Swift Date extension helper
SwiftyTimer7.6 0.0 L5 Datez VS SwiftyTimerSwifty API for NSTimer
Time7.0 0.0 Datez VS Time🕰 Type-safe time calculations in Swift
TrueTime.swift6.4 0.0 L5 Datez VS TrueTime.swiftNTP library for Swift and Objective-C. Get the true time impervious to device clock changes.
Punctual.swift4.3 0.0 L5 Datez VS Punctual.swiftSwift date handler.
NVDate3.7 0.0 Datez VS NVDate📅 Swift4 Date extension library
AnyDate3.5 0.0 Datez VS AnyDateSwifty Date & Time API inspired from Java 8 DateTime API.
Tempo3.1 0.0 L4 Datez VS Tempo:watch: Date and time manager for iOS/OSX written in Swift
Datify1.3 0.0 Datez VS DatifyEasypeasy date functions. 🕛
Swift-NSDate-Extensions1.0 0.0 L5 Datez VS Swift-NSDate-ExtensionsSwift NSDate Extension to help development
CalendarDate0.3 0.0 Datez VS CalendarDateNaive date and time for Swift
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Datez or a related project?
Datez :calendar: Breeze through Date, DateComponents, and TimeInterval
Two Custom Structs Only (value types FTW!):
Dateassociated with an
Absolutely Zero Hardcode: Only hardcode now is to clear the date components, by setting the value to
1. Nothing like:
minutes = seconds * 60.
Modular Composition Design: Only one way to achieve something, instead of copy pasting code everywhere, with tons of head scratching.
You can try them in the playground shipped with the framework!
Quickly and Explicitly Access Date Components:
let someDate = Date() let currentCalendar = someDate.currentCalendar.components.year let gregorianDay = someDate.gregorian.components.day let hijriMonth = someDate.islamicCivil.components.month
Easy and Concise Date Manipulation:
let date = Date() let gregorianDate = date.gregorian // Adding components let tomorrow = gregorianDate + 1.day // Relative accessors let firstThingTomorrow = tomorrow.beginningOfDay // Easy tweaking let firstThingTomorrowButIn1984 = firstThingTomorrow.update(year: 1984) // now, lets get the date let newDate = firstThingTomorrowButIn1984.date
Convenient Date Operators:
// Just calling timeIntervalSinceDate let difference = Date(timeIntervalSinceNow: 5.minutes.timeInterval) - Date() // Just calling dateByAddingTimeInterval let afterFiftyHours = Date() + 50.hours.timeInterval // Just calling compare: let compareResult = Date(timeIntervalSinceNow: 8.hours.timeInterval) < Date()
This is marked as bonus since it's not ideal at all for precise calculation, but super useful when you just need some convenience. Examples would be setting expiration intervals and estimating components from
// Easily access TimeInterval to construct durations let expirationInterval = 300.days.timeInterval // Convert back to a single date component let months = expirationInterval.totalMonths // 9 // Or multiple components let components = expirationInterval.components // components ≈ CalendarComponents(day: 6, month: 9)
Swift Package Manager
TODO: Write me
CocoaPods is fully supported. Simply add the following line to your Podfile:
For manual installation, you can grab the source directly or through git submodules, then simply:
- Drop the
Datez.xcodeprojfile as a subproject (make sure
Copy resourcesis not enabled)
- Navigate to your root project settings. Under "Embedded Binaries", click the "+" button and select the
This framework doesn't reinvent anything Apple already built. Under the hood, it leverages the
DateComponents classes to do all the work. It simply tries to simplify the API for Swift developers. Period.
After experiencing what using a great Swift API feels like, by using RealmSwift and SwiftyJSON, I started to believe in the importance of a clean and concise Swift API, and its impact on our productivity and stress levels.
What's wrong with other date libraries?
Assuming the underlying
I needed to explicitly choose between Gregorian and IslamicCivil, so that is integrated.
Wrong Date Calculation: Most frameworks I've seen make assumptions about the number of days in a month, or hardcode the number of hours ... etc.
Datez is released under the MIT license. See LICENSE for details.
*Note that all licence references and agreements mentioned in the Datez README section above are relevant to that project's source code only.