|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.util.DateUtilities
public final class DateUtilities
Utility class that provides convenience methods for performing common date routines.
© Copyright 2008 Sans Pareil Technologies, Inc.
| Method Summary | |
|---|---|
static Date |
getCurrentDay()
Return a date instance that represents the current day in the local time zone. |
static Date |
getCurrentDay(TimeZone timeZone)
Return a date instance that represents the current day in the specified time zone. |
static Date |
getCurrentDayEnd()
Return a date instance that represents the current day in the local time zone. |
static Date |
getCurrentDayEnd(TimeZone timeZone)
Return a date instance that represents the current day in the specified time zone. |
static Date |
getDay(Date date)
Return the day after truncating the time component from the specified date for the default time zone. |
static Date |
getDay(Date date,
TimeZone timeZone)
Return the day after truncating the time component from the specified date for the specified time zone. |
static Date |
getDayEnd(Date date)
Return the day after truncating the time component from the specified date for the default time zone. |
static Date |
getDayEnd(Date date,
TimeZone timeZone)
Return the day after truncating the time component from the specified date for 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 Date getCurrentDay()
getCurrentDay(java.util.TimeZone)public static Date getCurrentDay(TimeZone timeZone)
timeZone - The time zone to use to compute the day.
CalendarUtilities.getCurrentDay(java.util.TimeZone)public static Date getCurrentDayEnd()
getCurrentDayEnd(java.util.TimeZone)public static Date getCurrentDayEnd(TimeZone timeZone)
timeZone - The time zone to use to compute the day.
CalendarUtilities.getCurrentDayEnd(java.util.TimeZone)public static Date getDay(Date date)
date - The date whose time component is to be truncated.
getDay(java.util.Date, java.util.TimeZone)
public static Date getDay(Date date,
TimeZone timeZone)
date - The date whose time component is to be truncated.timeZone - The time zone to base the correction on.
CalendarUtilities.getDay(java.util.Date, java.util.TimeZone)public static Date getDayEnd(Date date)
date - The date whose time component is to be truncated.
getDayEnd(java.util.Date, java.util.TimeZone)
public static Date getDayEnd(Date date,
TimeZone timeZone)
date - The date whose time component is to be truncated.timeZone - The time zone to base the correction on.
CalendarUtilities.getDayEnd(java.util.Date, java.util.TimeZone)
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||