| java.lang.Object org.sakaiproject.util.CalendarUtil
CalendarUtil | public class CalendarUtil (Code) | | CalendarUtil is a bunch of utility methods added to a java Calendar object.
|
Method Summary | |
public int | getDayOfMonth() Get the day of month. | public int | getDayOfWeekInMonth() Get the day of the week in month. | public int | getDay_Of_Week() Get the day of the week. | public int | getFirstDayOfMonth(int month) Set the calendar to the first day of this month, and return this day of week.
Parameters: month - The month. | public int | getMonthInteger() Get the month as an int value. | public String | getNextDate() Set the calendar to the next day, and return this. | public int | getNextMonth() Set the calendar to the next month, and return this. | public int | getNumberOfDays() Get the number of days. | public String | getPrevDate() Set the calendar to the prev day, and return this. | public int | getPrevMonth() Set the calendar to the prev month, and return this. | public String | getTodayDate() Get the current date, formatted. | public int | getWeekOfMonth() Get the week of month. | public int | getYear() Access the current user. | public void | nextDate() | public void | prevDate() | public void | setDay(int year, int month, int day) Set the calendar to this day. | public void | setDayOfMonth(int d) Set the calendar to this day. | public void | setMonth(int d) | public void | setNextWeek() Set the calendar to the next week, and return this. | public void | setNextYear() Set the calendar to the next year, and return this. | public void | setPrevWeek() Set the calendar to the prev week, and return this. | public void | setPrevYear() Set the calendar to the prev year, and return this. |
m_calendar | Calendar m_calendar(Code) | | The calendar object this is based upon.
|
CalendarUtil | public CalendarUtil()(Code) | | Construct.
|
getDayOfMonth | public int getDayOfMonth()(Code) | | Get the day of month.
the day of month. |
getDayOfWeekInMonth | public int getDayOfWeekInMonth()(Code) | | Get the day of the week in month.
the day of week in month. |
getDay_Of_Week | public int getDay_Of_Week()(Code) | | Get the day of the week.
the day of the week. |
getFirstDayOfMonth | public int getFirstDayOfMonth(int month)(Code) | | Set the calendar to the first day of this month, and return this day of week.
Parameters: month - The month. The calendar's day of week once set to this month. |
getMonthInteger | public int getMonthInteger()(Code) | | Get the month as an int value.
the month as an int value. |
getNextDate | public String getNextDate()(Code) | | Set the calendar to the next day, and return this.
the next day. |
getNextMonth | public int getNextMonth()(Code) | | Set the calendar to the next month, and return this.
the next month. |
getNumberOfDays | public int getNumberOfDays()(Code) | | Get the number of days.
the number of days. |
getPrevDate | public String getPrevDate()(Code) | | Set the calendar to the prev day, and return this.
the prev day. |
getPrevMonth | public int getPrevMonth()(Code) | | Set the calendar to the prev month, and return this.
the prev month. |
getTodayDate | public String getTodayDate()(Code) | | Get the current date, formatted.
the current date, formatted. |
getWeekOfMonth | public int getWeekOfMonth()(Code) | | Get the week of month.
the week of month. |
getYear | public int getYear()(Code) | | Access the current user.
the current year. |
nextDate | public void nextDate()(Code) | | |
prevDate | public void prevDate()(Code) | | |
setDay | public void setDay(int year, int month, int day)(Code) | | Set the calendar to this day.
Parameters: year - The year. Parameters: month - The month. Parameters: day - The day. |
setDayOfMonth | public void setDayOfMonth(int d)(Code) | | Set the calendar to this day.
Parameters: d - the day. |
setMonth | public void setMonth(int d)(Code) | | Set the calendar to this month
Parameters: d - the month. |
setNextWeek | public void setNextWeek()(Code) | | Set the calendar to the next week, and return this.
the next week. |
setNextYear | public void setNextYear()(Code) | | Set the calendar to the next year, and return this.
the next year. |
setPrevWeek | public void setPrevWeek()(Code) | | Set the calendar to the prev week, and return this.
the prev week. |
setPrevYear | public void setPrevYear()(Code) | | Set the calendar to the prev year, and return this.
the prev year. |
|
|