Level 78 Level 80
Level 79

[No Typing] GregorianCalendar Class


28 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
GregorianCalendar()
Constructs a default GregorianCalendar using the current time in the default time zone with the default locale.
GregorianCalendar(Locale aLocale)
Constructs a GregorianCalendar based on the current time in the default time zone with the given locale.
GregorianCalendar(TimeZone zone)
Constructs a GregorianCalendar based on the current time in the given time zone with the default locale.
void add(int field, int amount)
Adds the specified (signed) amount of time to the given time field, based on the calendar's rules.
protected void computeFields()
Converts UTC as milliseconds to time field values.
protected void computeTime()
Overrides Calendar Converts time field values to UTC as milliseconds.
boolean equals(Object obj)
Compares this GregorianCalendar to an object reference.
int get(int field)
Gets the value for a given time field.
int getActualMaximum(int field)
Return the maximum value that this field could have, given the current date.
int getActualMinimum(int field)
Return the minimum value that this field could have, given the current date.
int getGreatestMinimum(int field)
Returns highest minimum value for the given field if varies.
Date getGregorianChange()
Gets the Gregorian Calendar change date.
int getLeastMaximum(int field)
Returns lowest maximum value for the given field if varies.
int getMaximum(int field)
Returns maximum value for the given field.
Date getTime()
Gets this Calendar's current time.
long getTimeInMillis()
Gets this Calendar's current time as a long.
TimeZone getTimeZone()
Gets the time zone.
int getMinimum(int field)
Returns minimum value for the given field.
int hashCode()
Override hashCode.
boolean isLeapYear(int year)
Determines if the given year is a leap year.
void roll(int field, boolean up)
Adds or subtracts (up/down) a single unit of time on the given time field without changing larger fields.
void set(int field, int value)
Sets the time field with the given value.
void set(int year, int month, int date)
Sets the values for the fields year, month, and date.
void setGregorianChange(Date date)
Sets the GregorianCalendar change date.
void setTime(Date date)
Sets this Calendar's current time with the given Date.
void setTimeInMillis(long millis)
Sets this Calendar's current time from the given long value.
void setTimeZone(TimeZone value)
Sets the time zone with the given time zone value.
String toString()
Return a string representation of this calendar.