[prev in list] [next in list] [prev in thread] [next in thread]
List: jakarta-commons-dev
Subject: [jira] Commented: (LANG-434) Add DateUtils.ceiling() method
From: "Serge Knystautas (JIRA)" <jira () apache ! org>
Date: 2008-05-30 21:00:45
Message-ID: 1981458024.1212181245906.JavaMail.jira () brutus
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/LANG-434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601249#action_12601249 \
]
Serge Knystautas commented on LANG-434:
---------------------------------------
I tried to reply to Robert's email but it bounced, so posting reply here.
I believe [Robert Scholte's] interpretation sounds correct. I would expect the assert \
comments to be what should be tested, not the code. In other words, those tests \
should work if the method was truncate and should be failing if using the round \
method.
> Add DateUtils.ceiling() method
> ------------------------------
>
> Key: LANG-434
> URL: https://issues.apache.org/jira/browse/LANG-434
> Project: Commons Lang
> Issue Type: Improvement
> Affects Versions: 2.4
> Reporter: Travis Reeder
> Fix For: 3.0
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic