{"repo":"SwiftKitz/Datez","free":true,"listed":false,"github":"https://github.com/SwiftKitz/Datez","clone":"git clone https://github.com/SwiftKitz/Datez.git","description":"📆 Breeze through Date, DateComponents, and TimeInterval with Swift!","language":"Swift","stars":263,"topics":["date","datetime","calendar","swift","timeinterval","ios","macos","watchos","tvos","cocoapods"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Datez :calendar: Breeze through Date, DateComponents, and TimeInterval Highlights + Two Custom Structs Only (value types FTW!) : - DateView : An Date associated with an Calendar - CalendarComponents : Like DateComponents , but Calendar agnostic. + Absolutely Zero Hardcode: Only hardcode now is to clear the date components, by setting the value to 0 or 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. Features You can try them in the playground shipped with the framework! Quickly and Explicitly Access Date Components: Easy and Concise Date Manipulation: Convenient Date Operators: [Bonus]: Durations 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 TimeInterval Getting Started Swift Package Manager Add Datez to your Package.swift : Or add it through Xcode: File Add Package Dependencies, then enter the repository URL. Motivation This framework doesn't reinvent anything Apple already built. Under the hood, it leverages the Date , Calendar , and 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 ","default_branch":null,"files":null,"tree":[],"storefront":"/r/SwiftKitz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SwiftKitz/Datez/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}