Compare with `date.compare(.isEarlier(than: ))` return true if two day's timeIntervalSince1970 are equal
alfredcc opened this issue · 3 comments
alfredcc commented
https://github.com/melvitax/DateHelper/blob/master/Sources/DateHelper/DateHelper.swift#L261-L264
let date = Date.now
print(date.compare(.isEarlier(than: date))) // true
alfredcc commented
just compare timeIntervalSince1970
can fix this
alfredcc commented
would you mind not using self.xxx
?