-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
Decimal hours #121
Comments
I think decimal hours would be in scope for ThreeTen-Extra. They are tricky because they are decimals, and |
The proprietary class I am using at the moment uses Would it make sense to create Of course, some operations would not be possible. You could get the Hours field but not the minutes or second field. |
Sorry, I am not that familiar with the internals of JSR 310. What I am trying to do is create a class But what |
Yes, you'll need a new |
I came here to say this is something we also would love to see. Of course we can deal with decimal hours on our own, it's not impossible given the limited amount of features we need, but obviously I looked at java.time and threeten-extra for existing solutions only to find it cumbersome. In the end we went with something like |
I think this problem can take inspiration in |
Hi there,
just checking if this is something worth pursuing/contributing to Threeten-Extra. In Germany many accounting systems, payroll systems, time tracking systems have the concept of Industrieminuten (industry minutes) and Industriestunden (industry hours).
Industrieminuten allow the decimal representations of elapsed time. One Industriestunde equals 100 minutes. One Industrieminute is therefore 36 seconds in actual time.
Examples:
The advantages of this system are easier addition and a more compact visual representation of elapsed time. An addition to Threeten-Extra would improve integration with legacy software. With easier addition I am not talking about cpu cycles, but a person using an actual calculator or something like MS Excel.
Are there similar concepts in other countries? Thoughts?
References:
https://de.wikipedia.org/wiki/Industrieminute
https://en.wikipedia.org/wiki/Decimal_time
The text was updated successfully, but these errors were encountered: