You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2010/01/09 11:31:54 UTC
[jira] Updated: (LANG-441) DateUtils Javadoc does not fully define
round() behaviour
[ 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: (was: 3.0)
3.x
> 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
> Components: lang.time.*
> Affects Versions: 2.4
> Reporter: Sebb
> Fix For: 3.x
>
>
> 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.