|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.baka.tools.DateUtils
public final class DateUtils
Contains utility methods for work with the Date class.
| Field Summary | |
|---|---|
static long |
MILLIS_IN_DAY
Number of milliseconds in a day. |
| Method Summary | |
|---|---|
static void |
setZeroTime(Calendar cal)
Clears the time part of given calendar. |
static Date |
withZeroTime(Date date)
Returns a new date with zeroed time part. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long MILLIS_IN_DAY
| Method Detail |
|---|
public static void setZeroTime(Calendar cal)
TemporalType.DATE type.
cal - the calendar.public static Date withZeroTime(Date date)
TemporalType.DATE type.
date - the date, will not be modified. Must not be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||