melvitax/DateHelper

Compare with `date.compare(.isEarlier(than: ))` return true if two day's timeIntervalSince1970 are equal

alfredcc opened this issue · 3 comments

https://github.com/melvitax/DateHelper/blob/master/Sources/DateHelper/DateHelper.swift#L261-L264

let date = Date.now
print(date.compare(.isEarlier(than: date))) // true

just compare timeIntervalSince1970 can fix this

would you mind not using self.xxx ?