commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LANG-441) DateUtils Javadoc does not fully define round() behaviour
Date Fri, 22 Aug 2008 07:42:44 GMT

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

Henri Yandell updated LANG-441:
-------------------------------

    Fix Version/s: 3.0

> DateUtils Javadoc does not fully define round() behaviour
> ---------------------------------------------------------
>
>                 Key: LANG-441
>                 URL: https://issues.apache.org/jira/browse/LANG-441
>             Project: Commons Lang
>          Issue Type: Bug
>    Affects Versions: 2.4
>            Reporter: Sebb
>             Fix For: 3.0
>
>
> The Javadoc for DateUtils.round() does not define the behavior fully.
> For example, what is the result of:
> round(MINUTE)  on 28 Mar 2002 13:10:12.499
> round(MINUTE)  on 28 Mar 2002 13:10:12.500
> round(MINUTE)  on 28 Mar 2002 13:10:12.501
> round(HOUR) on 28 Mar 2002 13:29:59.999
> round(HOUR) on 28 Mar 2002 13:30:00
> round(HOUR) on 28 Mar 2002 13:30:01
> How are MONTHs/YEARs rounded? Is the time taken into account?
> Does the rounding for February depend on whether there is a leap year?
> What does it mean to round to SEMI_MONTH?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message