commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aleksander Ściborek <aleksanderscibo...@gmail.com>
Subject Re: [Lang] Rounding Duration
Date Sun, 15 Jul 2018 19:11:51 GMT
Yes, you are right
I forgot about it, but when new commons-lang will requires Java 8 I hope I
will be able to help you ;)
Aleksander

On 15 July 2018 at 21:06, Pascal Schumacher <pascalschumacher@gmx.net>
wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message