commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pascal Schumacher <pascalschumac...@gmx.net>
Subject Re: [Lang] Rounding Duration
Date Sun, 15 Jul 2018 19:06:47 GMT
Hi Aleksander,

guess you are referring to java.time.Duration?

This class was added in Java 8 and commons-lang currently only requires 
Java 7. Therefore we can not add this at the moment.

Sorry,
Pascal

Am 14.07.2018 um 21:26 schrieb Aleksander Ściborek:
> Hello everyone
> During implamanting a feauture in Java I noticed that there is no methods
> to round duration for instance:
> between 10:00 and 12:31 there is 2h 31 min. I want to write some methods to
> reduce boilerplate code to calculate  time in given unit between temporals
> and round this time - e.g. for 2 h 31 minutes it should return 3 hours
> Aleksander
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message