Hi, I also had an idea for a method which returns the most significant unit of a Duration. For example, you have a duration of 432 days, 3 hours, 21 minutes, 5 seconds, etc., and it would return you "432 days" (or just â1 yearâ). I encountered this when wanting to create a time indication on e.g. a commit or a comment. Itâs much more readable and user-friendly than a timestamp. Would this be a nice addition to the Duration API?
On Nov 24, 2015, at 3:59 PM, stepharo <stepharo@free.fr> wrote:
Hi
I was reading the code of Date and I was expecting to get some methods such as monthNames dayNames daysInMonths
Ok they are stored in ChronologyConstants but they are not accessible. There is no monthNames nor
Do I imply something strange or silly? I think that it would make sense to add them.
Stef