A suite of utilities surrounding the use of the {@link java.util.Calendar} and {@link java.util.Date} object.
DateUtils contains a lot of common methods considering manipulations of Dates or Calendars. Some methods require some extra explanation. The truncate, ceiling and round methods could be considered the Math.floor(), Math.ceil() or Math.round versions for dates This way date-fields will be ignored in bottom-up order. As a complement to these methods we've introduced some fragment-methods. With these methods the Date-fields will be ignored in top-down order. Since a date without a year is not a valid date, you have to decide in what kind of date-field you want your result, for instance milliseconds or days.
@since 2.0 @version $Id: DateUtils.java 1577519 2014-03-14 13:23:25Z djones $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|