naoty / Timepiece

Intuitive date handling in Swift
MIT License
2.63k stars 147 forks source link

Date comparing #8

Closed Koshub closed 9 years ago

Koshub commented 9 years ago

Thanks for perfect abstraction like now + 2.days. It will be fantastic if you add dates comparing!

naoty commented 9 years ago

@Koshub I also want to compare dates. I try to add it!

Koshub commented 9 years ago

@naoty nice, looking forward to it :+1:

naoty commented 9 years ago

@Koshub I have added it at 9ed880f0350f15a567d04f64b8c318a106127787 and released 0.3.0! Please try to compare dates.

Koshub commented 9 years ago

@naoty Thanks. Although there are not all operators (like <,>,>=,<=,==,!=) this is better than nothing. Thanks again

naoty commented 9 years ago

@Koshub All operators are supported because Equatable protocol, which requires ==, and Comparable protocol, which requires <, is implemented. Look at tests!

Koshub commented 9 years ago

@naoty Sorry. I didn't know about that.

naoty commented 9 years ago

@Koshub Thank you for the issue!