public class GregorianCalendar extends Calendar
Modifier and Type | Field and Description |
---|---|
static int |
AD |
static int |
BC |
protected static int[] |
daysInMonth |
AM, AM_PM, amPm, APRIL, AUGUST, date, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, dayOfMonth, DECEMBER, DST_OFFSET, ERA, FEBRUARY, FIELD_COUNT, firstWeekDayOfWeek, FRIDAY, hour, HOUR, HOUR_OF_DAY, JANUARY, JULY, JUNE, MARCH, MAY, MILLISECOND, minute, MINUTE, MONDAY, month, MONTH, NOVEMBER, OCTOBER, PM, SATURDAY, second, SECOND, SEPTEMBER, SUNDAY, THURSDAY, TUESDAY, UNDECIMBER, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, year, YEAR, ZONE_OFFSET
Constructor and Description |
---|
GregorianCalendar() |
GregorianCalendar(Date date) |
GregorianCalendar(int year,
int month,
int date) |
GregorianCalendar(int year,
int month,
int date,
int hour) |
GregorianCalendar(int year,
int month,
int date,
int hour,
int minute) |
GregorianCalendar(int year,
int month,
int date,
int hour,
int minute,
int second) |
Modifier and Type | Method and Description |
---|---|
void |
add(int fieldCode,
int amount) |
boolean |
after(GregorianCalendar when) |
boolean |
before(GregorianCalendar when) |
Object |
clone() |
protected void |
computeFields() |
protected void |
computeTime() |
boolean |
equals(GregorianCalendar obj) |
int |
getActualMaximum(int fieldCode) |
int |
getActualMinimum(int fieldCode) |
int |
getFirstWeekDayOfMonth() |
int |
getGreatestMinimum(int fieldCode) |
int |
getLeastMaximum(int fieldCode) |
int |
getMaxDaysInMonth() |
static int |
getMaxDaysInMonth(int year,
int month) |
int |
getMaximum(int fieldCode) |
int |
getMinimum(int fieldCode) |
int |
getNumOfWeeksInMonth() |
static int |
getNumOfWeeksInMonth(int year,
int month,
int firstDayOfWeek) |
int |
getWeekDay() |
static int |
getWeekDay(int year,
int month,
int dayOfMonth) |
int |
hashCode() |
boolean |
isLeapYear() |
static boolean |
isLeapYear(int year) |
void |
roll(int fieldCode,
int amount) |
void |
set(int fieldCode,
int value) |
public static final int BC
public static final int AD
protected static int[] daysInMonth
public GregorianCalendar()
public GregorianCalendar(Date date)
public GregorianCalendar(int year, int month, int date)
public GregorianCalendar(int year, int month, int date, int hour)
public GregorianCalendar(int year, int month, int date, int hour, int minute)
public GregorianCalendar(int year, int month, int date, int hour, int minute, int second)
public static int getMaxDaysInMonth(int year, int month)
public int getMaxDaysInMonth()
public static int getNumOfWeeksInMonth(int year, int month, int firstDayOfWeek)
public int getNumOfWeeksInMonth()
public static int getWeekDay(int year, int month, int dayOfMonth)
public int getWeekDay()
public int getFirstWeekDayOfMonth()
public int getMinimum(int fieldCode)
getMinimum
in class Calendar
public int getActualMinimum(int fieldCode)
getActualMinimum
in class Calendar
public int getGreatestMinimum(int fieldCode)
getGreatestMinimum
in class Calendar
public int getMaximum(int fieldCode)
getMaximum
in class Calendar
public int getActualMaximum(int fieldCode)
getActualMaximum
in class Calendar
public int getLeastMaximum(int fieldCode)
getLeastMaximum
in class Calendar
public boolean before(GregorianCalendar when)
public boolean after(GregorianCalendar when)
public boolean equals(GregorianCalendar obj)
public boolean isLeapYear()
public static boolean isLeapYear(int year)
protected void computeFields()
computeFields
in class Calendar
protected void computeTime()
computeTime
in class Calendar
Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.