|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.util.CalendarUtilities
public final class CalendarUtilities
A utility class that provides convenience methods for common calendar routines.
© Copyright 2008 Sans Pareil Technologies, Inc.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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.
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||