|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.epicentric.common.CalendarUtils
Utility class for formatting, representing, and returning calendar and date information.
| Field Summary | |
protected static DateFormatSymbols |
dateSymbols
Deprecated. Date symbols object for retrieving month and weekday strings. |
protected static int[] |
DAYS_OF_MONTH
Deprecated. Array storing the number of days of each month. |
| Constructor Summary | |
protected |
CalendarUtils()
Deprecated. Private constructor of the class. |
| Method Summary | |
static int |
getCurrent(int field)
Deprecated. Gets the value of the specified field for the current date, such as year, month, day of year, week of year, etc. |
static String |
getDateString(int year,
int month,
int day)
Deprecated. Returns the string for the specified date. |
static String |
getDayOfWeekString(int year,
int month,
int day)
Deprecated. Returns the string for the specified day of the week. |
static String |
getFormattedDate(int year,
int month,
int day)
Deprecated. Same as getDateString(), except formats the string as "MM/dd/yyyy". |
static int[][] |
getMonthFormat(int year,
int month)
Deprecated. Returns a 2-dimensional array representing weeks and days of the specified month. |
static String |
getMonthString(int month)
Deprecated. Returns the string for the specified month. |
static String |
getTodayString()
Deprecated. Returns the string for the current date. |
static void |
main(String[] args)
Deprecated. Formats and prints a calendar for the specified year and month or for a whole year. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final int[] DAYS_OF_MONTH
protected static DateFormatSymbols dateSymbols
| Constructor Detail |
protected CalendarUtils()
| Method Detail |
public static int[][] getMonthFormat(int year,
int month)
year - Year integer (yyyy format)month - Integer representing the month of the year (0 is
January)month
and the second dimension representing the day of the week.
Each array element is a day of the month. An element value
of -1 indicates each day in a partial week that is not
part of the month (a partial week either begins in the
previous month or ends in the next month). Returns null if
month is out of range.public static String getMonthString(int month)
month - Integer representing the month of the year (0 is
January)month
public static String getDayOfWeekString(int year,
int month,
int day)
year - Year integer (yyyy format)month - Integer representing the month of the year (0 is
January)day - Integer representing the day of the monthyear, month, and daypublic static String getTodayString()
public static String getDateString(int year,
int month,
int day)
year - Year integer (yyyy format)month - Integer representing the month of the year (0 is
January)day - Integer representing the day of the month
public static String getFormattedDate(int year,
int month,
int day)
CalendarUtils.getDateString(int year, int month, int day)public static int getCurrent(int field)
field - GregorianCalendar fieldfieldpublic static void main(String[] args)
java com.epicentric.common.CalendarUtils YEAR {MONTH}
|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||