Type-safe time calculations in Swift. Time is not just a bunch of Double conversion functions. The main advantage of it is that all time units are strongly-typed. Starting with Xcode 11, Time is officially available only via Swift Package Manager. Of course, you always have an option of just copying-and-pasting the code - Time is just two files, so feel free.
Features
- You can perform all basic arithmetic operations on time intervals, even of different units
- Time intervals are easily convertible
- Convert intervals to Foundation's TimeInterval
- You can compare different time units as well
- Create your own time units
- Starting with Xcode 11, Time is officially available only via Swift Package Manager
Categories
LibrariesLicense
MIT LicenseFollow Time
Other Useful Business Software
MongoDB Atlas runs apps anywhere
MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Time!