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

Flaw in logic? #211

Open
Sternbach-Software opened this issue Jul 10, 2023 · 2 comments
Open

Flaw in logic? #211

Sternbach-Software opened this issue Jul 10, 2023 · 2 comments

Comments

@Sternbach-Software
Copy link
Contributor

Sternbach-Software commented Jul 10, 2023

Shouldn't this be >= instead of >? If 30 minutes is equal to the second zman, return 30 minutes (or the other zman, depending on how you look at it). Is this not semantically equivalent to Math.max()?

return getMinchaGedola30Minutes().compareTo(getMinchaGedola()) > 0 ? getMinchaGedola30Minutes()

Same for this:

return getMinchaGedola30Minutes().compareTo(getMinchaGedolaBaalHatanya()) > 0 ? getMinchaGedola30Minutes()

@Elyahu41
Copy link
Contributor

Does it practically make a difference? It will be the same Date eitherway if equal

@Sternbach-Software
Copy link
Contributor Author

True, but if it is >=, Math.max would be clearer.

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

2 participants