public final class DateUtilities extends Object
© Copyright 2008 Sans Pareil Technologies, Inc.
| Modifier and Type | Method and Description |
|---|---|
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.
|
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)