-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
Add Duration methods for days, hours, minutes, seconds, etc. #76
Comments
Seems like a good idea. However, for IP reasons, it needs someone other than me to do it (and whoever does it must not look at the source code of OpenJDK - just the Javadoc. |
@jodastephen Had a quick look at this. Noticed your comment on the OpenJDK issue that modulo operator might not be appropriate for negative numbers. Behavior of the Sample code:
Output:
|
I'd expect
(it is 1 hour and 1 second less than zero) |
Would be great to integrate this to the backport:
https://bugs.openjdk.java.net/browse/JDK-8142936
The text was updated successfully, but these errors were encountered: