|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evanmclean.evlib.util.CalUtils
public final class CalUtils
Misc utilities for handling Calendar objects.
Method Summary | |
---|---|
static void |
setMidday(Calendar cal)
Set the time component of the calendar to midday. |
static void |
setMidday(Date dt)
Set the time component of the date to midday, using the local time zone. |
static void |
setMidday(Date dt,
TimeZone tz)
Set the time component of the date to midday. |
static void |
setMidnight(Calendar cal)
Set the time component of the calendar to midnight. |
static void |
setMidnight(Date dt)
Set the time component of the date to midnight, using the local time zone. |
static void |
setMidnight(Date dt,
TimeZone tz)
Set the time component of the date to midnight. |
static Date |
today()
Return a date, set to midnight of the current local day. |
static Date |
today(TimeZone tz)
Return a date, set to midnight of the current day for the given time zone. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Date today()
public static Date today(TimeZone tz)
tz
-
public static void setMidday(Calendar cal)
cal
- public static void setMidday(Date dt)
dt
- public static void setMidday(Date dt, TimeZone tz)
dt
- tz
- public static void setMidnight(Calendar cal)
cal
- public static void setMidnight(Date dt)
dt
- public static void setMidnight(Date dt, TimeZone tz)
dt
- tz
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |