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 <[email protected]> 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
> 


Reply via email to