TimeExtensions is a library written in Swift whose purpose is to provide an elegant and easily understandable syntax for working with time. It is heavily inspired from ActiveSupport in Ruby on Rails.
You can get NSTimeIntervals by adding a unit like seconds or minutes to a Float, Int, or Double :
10.minutes
2.5.seconds
5.daysYou can get NSDates from NSTimeIntervals by making use of ago, since, fromNow and until :
10.minutes.ago
5.days.until(someDate)See http://roshanr95.github.io/TimeExtensions/ for more info.