|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oddjob.schedules.CalendarUtils
| Constructor Summary | |
CalendarUtils()
|
|
| Method Summary | |
static java.util.Calendar |
dayOfMonth(java.util.Date referenceDate,
int day,
java.util.TimeZone timeZone)
Utility function to get a calendar which represents the day of the month in which the reference date is. |
static java.util.Calendar |
dayOfWeek(java.util.Date referenceDate,
int day,
java.util.TimeZone timeZone)
Utility function to get a calendar which represents the day of the week from the reference date. |
static java.util.Calendar |
dayOfYear(java.util.Date referenceDate,
int dayOfYear,
java.util.TimeZone timeZone)
Calendar for the day of year. |
static java.util.Calendar |
endOfMonth(java.util.Date inDate,
java.util.TimeZone timeZone)
Calculate the date at the end of the month for the given date. |
static java.util.Calendar |
endOfWeek(java.util.Date inDate,
java.util.TimeZone timeZone)
Calculate the start of the week for the given date. |
static java.util.Calendar |
endOfYear(java.util.Date referenceDate,
java.util.TimeZone timeZone)
Calcuate the date at the end of the year from the given date. |
static java.util.Calendar |
monthOfYear(java.util.Date referenceDate,
int month,
java.util.TimeZone timeZone)
Utility function to get the start of the month as a Calendar. |
static void |
setEndOfDay(java.util.Calendar calendar)
Set the calendar to the end of day. |
static void |
setEndOfMonth(java.util.Calendar calendar)
Set the calendar to the end of the month. |
static java.util.Calendar |
startOfMonth(java.util.Date inDate,
java.util.TimeZone timeZone)
Calculate the date at the start of the month for the given date. |
static java.util.Calendar |
startOfWeek(java.util.Date inDate,
java.util.TimeZone timeZone)
Calculate the start of the week for the given date. |
static java.util.Calendar |
startOfYear(java.util.Date referenceDate,
java.util.TimeZone timeZone)
Calculate the date at the start of the year for the given date. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CalendarUtils()
| Method Detail |
public static void setEndOfDay(java.util.Calendar calendar)
calendar - The calendar that will be set.public static void setEndOfMonth(java.util.Calendar calendar)
calendar - The calendar that will be set.
public static java.util.Calendar startOfMonth(java.util.Date inDate,
java.util.TimeZone timeZone)
inDate - The given date.
public static java.util.Calendar endOfMonth(java.util.Date inDate,
java.util.TimeZone timeZone)
inDate - The given date.
public static java.util.Calendar dayOfMonth(java.util.Date referenceDate,
int day,
java.util.TimeZone timeZone)
referenceDate - The date to take month from.day - The day.
public static java.util.Calendar startOfWeek(java.util.Date inDate,
java.util.TimeZone timeZone)
inDate - The given date.
public static java.util.Calendar endOfWeek(java.util.Date inDate,
java.util.TimeZone timeZone)
inDate - The given date.
public static java.util.Calendar dayOfWeek(java.util.Date referenceDate,
int day,
java.util.TimeZone timeZone)
referenceDate - The date to take week from.day - The day.
public static java.util.Calendar startOfYear(java.util.Date referenceDate,
java.util.TimeZone timeZone)
referenceDate - The given date.
public static java.util.Calendar endOfYear(java.util.Date referenceDate,
java.util.TimeZone timeZone)
referenceDate - The given date.
public static java.util.Calendar dayOfYear(java.util.Date referenceDate,
int dayOfYear,
java.util.TimeZone timeZone)
referenceDate - The date to take year from.dayOfYear - The day of the year.
public static java.util.Calendar monthOfYear(java.util.Date referenceDate,
int month,
java.util.TimeZone timeZone)
referenceDate - The whole date.month - The month to calculate the start of.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||