Description
Datez is a Swift package that makes working with Date, DateComponents and TimeInterval shorter and easier to read. It adds two small value types. DateView pairs a Date with a Calendar, and CalendarComponents works like DateComponents but does not depend on a calendar. You can read a single component such as the month or the day directly, manipulate dates with concise calls, and use operators for common arithmetic. Durations can be written in plain terms, for example 300 days, converted to a TimeInterval, and turned back into a single component such as months or into several components together. The package is built on Apple's own Date, Calendar and DateComponents classes, so it does not reinvent their behaviour; it simplifies the API on top. It ships with a playground for trying the examples, and it can be added with Swift Package Manager or through Xcode's Add Package Dependencies dialog using the repository URL. The source is public on GitHub.…
Highlights
- Date and calendar value types for Swift
- Direct access to date components
- Durations written as days, months or seconds
- Built on Apple's Date and Calendar classes
- Installs with Swift Package Manager
Ratings & Reviews
No ratings yet
Be the first to rate Datez.
People also visit
Datez FAQ
What is Datez?
A Swift package that simplifies working with dates, date components and time intervals, built on top of Apple's own Date and Calendar classes.
How do I install it?
Add the package with Swift Package Manager using the repository URL, or in Xcode choose File, Add Package Dependencies and paste the URL.
Can I try it before using it?
Yes. The package ships with a playground that includes examples of date access, manipulation and operators.
Is it free?
Yes. The source is public on GitHub at SwiftKitz/Datez.
What are the best Datez alternatives?
Popular alternatives to Datez include Fastis, Time and KVKCalendar. See all Datez alternatives


