Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparing date fails (due to NSTimeInterval - a floating point) #59

Open
nickbit opened this issue Feb 13, 2015 · 0 comments
Open

Comparing date fails (due to NSTimeInterval - a floating point) #59

nickbit opened this issue Feb 13, 2015 · 0 comments

Comments

@nickbit
Copy link

nickbit commented Feb 13, 2015

Hello,
while trying to compare dates I get the following results (is slot in range startDate/endDate?)

NO - slot/startDate/endDate:2015-02-14 03:30:00 +0000/2015-02-14 03:30:00 +0000/2015-02-14 23:30:00 +0000
timeInterval slot/startDate/endDate : 1423884600.000000/1423884600.570670/1423956600.570670

Comparison is done with this code

[slotDate isLaterThanOrEqualTo:startDate] && [slotDate isEarlierThanOrEqualTo:endDate]

Please correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant