The methods of Java.Util.Calendar are listed below. For a list of all members, see the Calendar Members list.
See Also: Inherited members from Java.Lang.Object
abstract | Add(CalendarField, int)Adds the given amount to a Calendar field. | |
After(Java.Lang.Object)Returns whether the Date represented by this Calendar instance is after the Date represented by the parameter. | ||
Before(Java.Lang.Object)Returns whether the Date represented by this Calendar instance is before the Date represented by the parameter. | ||
Clear()Clears the values of all the time fields, marking them all unset and assigning them all a value of zero. | ||
Clear(CalendarField)Clears the value in the given time field, marking it unset and assigning it a value of zero. | ||
Clone()Returns a shallow copy of this Calendar with the same properties. | ||
CompareTo(Calendar)Compares the time represented by this Calendar to that represented by the given Calendar. | ||
Get(CalendarField)Returns the value of the given field after computing the field values by calling complete() first. | ||
GetActualMaximum(CalendarField)Returns the maximum value of the given field for the current date. | ||
GetActualMinimum(CalendarField)Returns the minimum value of the given field for the current date. | ||
static | GetAvailableLocales()Returns an array of locales for which custom Calendar instances are available. | |
GetDisplayName(int, int, Locale)Returns a human-readable string for the value of field using the given style and locale. | ||
GetDisplayNames(int, int, Locale)Returns a map of human-readable strings to corresponding values, for the given field, style, and locale. | ||
abstract | GetGreatestMinimum(CalendarField)Returns the greatest minimum value of the given field. | |
static | GetInstance(Locale)Constructs a new instance of the Calendar subclass appropriate for the given Locale and default TimeZone, set to the current date and time. | |
static | GetInstance(TimeZone)Constructs a new instance of the Calendar subclass appropriate for the default Locale and given TimeZone, set to the current date and time. | |
static | GetInstance(TimeZone, Locale)Constructs a new instance of the Calendar subclass appropriate for the given Locale and given TimeZone, set to the current date and time. | |
abstract | GetLeastMaximum(CalendarField)Returns the smallest maximum value of the given field. | |
abstract | GetMaximum(CalendarField)Returns the greatest maximum value of the given field. | |
abstract | GetMinimum(CalendarField)Returns the smallest minimum value of the given field. this returns the smallest value that get can return for the given field. | |
IsSet(CalendarField)Tests whether the given field is set. | ||
abstract | Roll(CalendarField, bool)Increment or decrement the given field and wrap the value of the field when it goes beyond the maximum or minimum value for the current date. | |
Roll(CalendarField, int)Adds the given amount to the given field and wraps the value of the field when it goes beyond the maximum or minimum value for the current date. | ||
Set(CalendarField, int)Sets the given field to the given value. | ||
Set(int, int, int)Sets the year, month, and day of the month fields. | ||
Set(int, int, int, int, int)Sets the year, month, day of the month, hour of day, and minute fields. | ||
Set(int, int, int, int, int, int)Sets the year, month, day of the month, hour of day, minute, and second fields. | ||
SetWeekDate(int, int, int)Documentation for this section has not yet been entered. |
Complete()Computes the time from the fields if the time has not already been set. | ||
abstract | ComputeFields()Computes the Calendar fields from time. | |
abstract | ComputeTime()Computes time from the Calendar fields. | |
InternalGet(int)Returns the value of the given field without recomputing. |