|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.taggercat.util.DateUtils
public class DateUtils
![]() |
![]() |
| Constructor Summary | |
|---|---|
DateUtils()
|
|
| Method Summary | |
|---|---|
static java.util.Date |
endOfDay()
Returns the date at the end of the current day. |
static java.util.Date |
endOfDay(java.util.Calendar cal)
|
static java.util.Date |
endOfDay(java.util.Date date)
Returns the date at the end of the current day. |
static java.util.Date |
endOfDay(java.util.Date date,
java.util.Calendar cal)
Returns the date at the end of the current day. |
static java.util.Date |
endOfHour(java.util.Date date)
Returns the date at the end of the current hour. |
static java.util.Date |
endOfHour(java.util.Date date,
java.util.Calendar cal)
Returns the date at the end of the current hour. |
static java.util.Date |
endOfMonth()
Returns the date at the end of the current month. |
static java.util.Date |
endOfMonth(java.util.Date date)
Returns the date at the end of the month for the specified date |
static java.util.Date |
endOfMonth(java.util.Date date,
java.util.Calendar cal)
Returns the date at the end of the month for the specified date |
static java.util.Date[] |
getKeyWordDateRange(java.lang.String keyword)
Returns the date range for the specified key word date range |
static java.util.Date[] |
getQuarter(java.util.Calendar calendar,
int q)
Returns the two dates that represent the start and end of a quarter |
static java.util.Date[] |
getQuarter(int q)
Returns the two dates that represent the start and end of a quarter of the current year. |
static java.util.Date[] |
last90Days()
Returns the two dates that represent the start and end of the last quarter |
static java.util.Date[] |
lastMonth()
Returns the two dates that represent the start and end of last month |
static java.util.Date[] |
lastNDays(int n)
Returns the two dates that represent the start and end of the last N days |
static java.util.Date[] |
lastQuarter()
Returns the two dates that represent the start and end of the last quarter |
static java.util.Date[] |
lastWeek()
Returns the two dates that represent the start and end of last week |
static java.util.Date[] |
lastYear()
Returns the two dates that represent the start and end of last year |
static void |
main(java.lang.String[] args)
|
static java.util.Date[] |
nextMonth()
Returns the two dates that represent the start and end of next month |
static java.util.Date[] |
nextNDays(int n)
Returns the two dates that represent the start and end of the next N days |
static java.util.Date[] |
nextWeek()
Returns the two dates that represent the start and end of next week |
static java.util.Date[] |
nextYear()
Returns the two dates that represent the start and end of next year |
static java.util.Date |
noonOfDay(java.util.Date date,
java.util.Calendar cal)
|
static java.util.Date |
startOfDay()
Returns the start of the day for the current system date |
static java.util.Date |
startOfDay(java.util.Calendar cal)
|
static java.util.Date |
startOfDay(java.util.Date date)
Returns the start of the day for the specified date |
static java.util.Date |
startOfDay(java.util.Date date,
java.util.Calendar cal)
Returns the start of the day for the specified date and calendar |
static java.util.Date |
startOfMonth()
Returns the start of the month for the current system date |
static java.util.Date |
startOfMonth(java.util.Date date)
Returns the start of the month for the specified date |
static java.util.Date |
startOfMonth(java.util.Date date,
java.util.Calendar cal)
Returns the start of the month for the specified date and calendar |
static java.util.Date[] |
thisMonth()
Returns the two dates that represent the start and end of this month |
static java.util.Date[] |
thisQuarter()
Returns the two dates that represent the start and end of this quarter |
static java.util.Date[] |
thisWeek()
Returns the two dates that represent the start and end of this week |
static java.util.Date[] |
thisYear()
Returns the two dates that represent the start and end of this year |
static java.util.Date[] |
today()
Returns the two dates that represent the start and end of today |
static java.util.Date[] |
tomorrow()
Returns the two dates that represent the start and end of tomorrow |
static java.util.Date[] |
yearToDate()
Returns the two dates that represent the Year to Date |
static java.util.Date[] |
yesterday()
Returns the two dates that represent the start and end of yesterday |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateUtils()
| Method Detail |
|---|
public static java.util.Date endOfDay()
public static java.util.Date endOfDay(java.util.Calendar cal)
public static java.util.Date endOfDay(java.util.Date date)
date - the date
public static java.util.Date endOfDay(java.util.Date date,
java.util.Calendar cal)
date - the datecal - the calendar
public static java.util.Date endOfHour(java.util.Date date)
date - the date
public static java.util.Date endOfHour(java.util.Date date,
java.util.Calendar cal)
date - the datecal - the calendar
public static java.util.Date endOfMonth()
public static java.util.Date endOfMonth(java.util.Date date)
public static java.util.Date endOfMonth(java.util.Date date,
java.util.Calendar cal)
date - the datecal - the calendar
public static java.util.Date[] lastMonth()
public static java.util.Date[] getQuarter(int q)
public static java.util.Date[] lastQuarter()
public static java.util.Date[] getQuarter(java.util.Calendar calendar,
int q)
public static java.util.Date[] thisQuarter()
public static java.util.Date[] last90Days()
public static java.util.Date[] nextNDays(int n)
public static java.util.Date[] lastNDays(int n)
public static java.util.Date[] lastWeek()
public static java.util.Date[] lastYear()
public static java.util.Date[] yearToDate()
public static void main(java.lang.String[] args)
args - public static java.util.Date[] nextMonth()
public static java.util.Date[] nextWeek()
public static java.util.Date[] nextYear()
public static java.util.Date noonOfDay(java.util.Date date,
java.util.Calendar cal)
public static java.util.Date startOfDay()
public static java.util.Date startOfDay(java.util.Calendar cal)
public static java.util.Date startOfDay(java.util.Date date)
date - the date
public static java.util.Date startOfDay(java.util.Date date,
java.util.Calendar cal)
date - the datecal - the calendar
public static java.util.Date startOfMonth()
public static java.util.Date startOfMonth(java.util.Date date)
date - the date
public static java.util.Date startOfMonth(java.util.Date date,
java.util.Calendar cal)
date - the datecal - the calendar
public static java.util.Date[] getKeyWordDateRange(java.lang.String keyword)
public static java.util.Date[] thisMonth()
public static java.util.Date[] thisWeek()
public static java.util.Date[] thisYear()
public static java.util.Date[] today()
public static java.util.Date[] tomorrow()
public static java.util.Date[] yesterday()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||