commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LANG-1407) Duration Utils - Rounding Duration
Date Mon, 06 Aug 2018 21:30:00 GMT

     [ https://issues.apache.org/jira/browse/LANG-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Osipov updated LANG-1407:
---------------------------------
    Description: In Java 8 Duration is always rounded down - for instance if we have 20:00
and 22:40 LocalDates we will get 2 hours of duration between them. Purpose of this Util Class
is to create utils to round up a duration in a given time unit.   (was: In Java 8 Duration
is always rounded down - for instance if we have 8:00 PM and 10:40 PM LocalDates we will get
2 hours of duration between them. Purpose of this Util Class is to create utils to round up
a duration in a given time unit. )

> Duration Utils - Rounding Duration
> ----------------------------------
>
>                 Key: LANG-1407
>                 URL: https://issues.apache.org/jira/browse/LANG-1407
>             Project: Commons Lang
>          Issue Type: Task
>          Components: lang.time.*
>            Reporter: Aleksander Ściborek
>            Priority: Minor
>
> In Java 8 Duration is always rounded down - for instance if we have 20:00 and 22:40 LocalDates
we will get 2 hours of duration between them. Purpose of this Util Class is to create utils
to round up a duration in a given time unit. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message