Earlier this year I mentioned a Swift library for working with dates inspired by Moments.js called SwiftMoment.
Here’s an open source library that provides even more help for working with dates called Timepiece by Naoto Kaneko for working with dates with an intuitive Swift syntax.
Timepiece allows easy formatting from strings, helpers for initialization, and manipulation of dates.
Here is a code snippet showing how one could manipulate and format dates:
//=> "2015-03-01 12:05:00"
//=> NSDate.date(year: 1987, month: 6, day: 2)
You can find Timepiece on Github here.
A nice library for working with dates.
Submit A Resource
Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?
You can submit the url here.
The resources we feel will appeal to our readers the most will be posted on the front page.