[
https://issues.apache.org/jira/browse/LANG-434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855795#action_12855795
]
Rodrigo Bartels commented on LANG-434:
--------------------------------------
Javadoc about the ceiling methods is wrong...
Check
http://commons.apache.org/lang/api-release/org/apache/commons/lang/time/DateUtils.html#ceiling(java.util.Calendar,
int)
It seems that someone copy the round method comments...
> Add DateUtils.ceiling() method
> ------------------------------
>
> Key: LANG-434
> URL: https://issues.apache.org/jira/browse/LANG-434
> Project: Commons Lang
> Issue Type: Improvement
> Components: lang.time.*
> Affects Versions: 2.4
> Reporter: Travis Reeder
> Fix For: 2.5
>
> Attachments: LANG-434-rs.patch
>
>
> It would be nice to have a DateUtils.ceiling methods which would be the
> opposite of truncate (which is equivalent to floor)
> DateUtils.ceiling(Date d, int field);
> For example, if you had the datetime of 28 Mar 2002 13:45:01.231, if you
> passed with HOUR, it would return 28 Mar 2002 13:59:59.999. If this was
> passed with MONTH, it would return 31 Mar 2002 23:59:59.999.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira