public final class CalendarUtilities extends Object
© Copyright 2008 Sans Pareil Technologies, Inc.
| Modifier and Type | Method and Description |
|---|---|
static Calendar |
getCurrentDay()
Return a calendar instance that represents the current day in the
default time zone.
|
static Calendar |
getCurrentDay(TimeZone timeZone)
Return a calendar instance that represents the current day in the
specified time zone.
|
static Calendar |
getCurrentDayEnd()
Return a calendar instance that represents the end of the current day in
the default time zone.
|
static Calendar |
getCurrentDayEnd(TimeZone timeZone)
Return a calendar instance that represents the end of the current day in
the specified time zone.
|
static Calendar |
getDay(Date date)
Return a calendar instance that represents the day specified by the
specified date in the default time zone.
|
static Calendar |
getDay(Date date,
TimeZone timeZone)
Return a calendar instance that represents the day specified by the
specified date in the specified time zone.
|
static Calendar |
getDayEnd(Date date)
Return a calendar instance that represents the end of the day specified
by the specified date in the default time zone.
|
static Calendar |
getDayEnd(Date date,
TimeZone timeZone)
Return a calendar instance that represents the end of the day specified
by the specified date in the specified time zone.
|
public static Calendar getCurrentDay()
getCurrentDay(java.util.TimeZone)public static Calendar getCurrentDay(TimeZone timeZone)
timeZone - The time zone to use to compute the day.public static Calendar getCurrentDayEnd()
getCurrentDayEnd(java.util.TimeZone)public static Calendar getCurrentDayEnd(TimeZone timeZone)
timeZone - The time zone to use to compute the day.public static Calendar getDay(Date date)
date - The date from which the day is to be derived.getDay(java.util.Date, java.util.TimeZone)public static Calendar getDay(Date date, TimeZone timeZone)
date - The date from which the day is to be derived.timeZone - The time zone to use to truncate the time.public static Calendar getDayEnd(Date date)
date - The date from which the day is to be derived.getDayEnd(java.util.Date, java.util.TimeZone)public static Calendar getDayEnd(Date date, TimeZone timeZone)
date - The date from which the day is to be derived.timeZone - The time zone to use to promote the time.