Readme on Date updated
justdan0227 opened this issue · comments
Dan commented
Does the readme need to be corrected for:
Check if a date is in future or past:
let later = Date(timeIntervalSinceNow: -100000)
print(now.isInFuture) // true
print(now.isInPast) // false
later is not used in the example?
Tom Baranes commented
I'm not sure what you mean, these both functions are available, what's wrong in the README?
Mulang Su commented
I think OP meant that the code comments are wrong (reversed, specifically). isInFuture
should be false since the date is in the past.
Tom Baranes commented
Aaaah, yes you are right, that's a typo in the README :)
Tom Baranes commented
I fixed it directly on master, thanks for the reporting!