Skip to content

marklarr/SwiftDate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftDate

Compare and create relative and absolute dates like you mean business.

let wwdcStartDate = 1.day.ago // Jun 2, 2014, 9:27 PM (at time of writing)
June/3 > wwdcStartDate // true
June/3/2013 > wwdcStartDate // false

1.day.ago > 23.hours.ago // false

1.hour.fromNow > 55.minutes.fromNow // true

June/2013 > January/2013 // true

About

Easy NSDate creation and comparison in Swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages