commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell" <flame...@gmail.com>
Subject Re: [LANG] Add DateUtils.ceiling methods
Date Sun, 27 Apr 2008 16:03:09 GMT
Makes sense. A JIRA issue with a patch will get committed quickly enough :)

Hen

On Wed, Apr 16, 2008 at 9:30 AM, Travis Reeder <treeder@gmail.com> wrote:
> 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.
>
>  I find myself needing doing this manually a lot.
>
>  Travis
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message