GitHub user asciborek opened a pull request:
https://github.com/apache/commons-lang/pull/377
LANG_1407 add DurationUtils
I've added an util class with methods for rounding duration
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/asciborek/commons-lang LANG_1407
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/commons-lang/pull/377.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #377
----
commit ad8d7b5b1d95ce66a4604bb7d8d3ee9ce1d8aa02
Author: Aleksander Sciborek <aleksandersciborek@...>
Date: 2018-10-06T14:23:43Z
[LANG_1407] Add methods to round quantitity of days from Duration
commit 4972d816402cd31cb3e5ea850e7880b9f51ee614
Author: Aleksander Sciborek <aleksandersciborek@...>
Date: 2018-10-07T14:52:50Z
[LANG_1407] add methods to round quantity of hours from Duration instance
commit cd2ca5c5e50efa12e03beb07f79cab31aa4fd6ce
Author: Aleksander Sciborek <aleksandersciborek@...>
Date: 2018-10-08T16:27:32Z
[LANG_1407] add methods to round quantity of minutes from Duration instance
commit 8363fd7a2b0233dd1e2f686be30b7983c9fedc55
Author: Aleksander Sciborek <aleksandersciborek@...>
Date: 2018-10-10T10:54:41Z
[LANG_1407] implement methods to round the quantity of seconds from the
given duration
commit 607cc3a68e4ac529848f2f80741800bcc30e199f
Author: Aleksander Sciborek <aleksandersciborek@...>
Date: 2018-10-11T21:23:16Z
[LANG_1407] add methods to round the quantity of millisecon from the
Duration instance
commit 8b43fb4de1cfd35cc576807533536a8a7465d666
Author: Aleksander Sciborek <aleksandersciborek@...>
Date: 2018-10-14T17:05:51Z
[LANG_1407] add the license headers to DurationUtils and DurationUtilsTests
----
---