Java.Util.Calendar Members

The members of Java.Util.Calendar are listed below.

See Also: Inherited members from Java.Lang.Object

Protected Constructors

Constructs a Calendar instance using the default TimeZone and Locale.
Constructs a Calendar instance using the given TimeZone and Locale.
A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
Amint (0). Value of the AM_PM field indicating the period of the day from midnight to just before noon.
const
AmPmCalendarField (9). Field number for get and set indicating whether the HOUR is before or after noon.
const
Aprilint (3). Value of the MONTH field indicating the fourth month of the year.
const
Augustint (7). Value of the MONTH field indicating the eighth month of the year.
const
DateCalendarField (5). Field number for get and set indicating the day of the month.
const
DayOfMonthCalendarField (5). Field number for get and set indicating the day of the month.
const
DayOfWeekCalendarField (7). Field number for get and set indicating the day of the week.
const
DayOfWeekInMonthCalendarField (8). Field number for get and set indicating the ordinal number of the day of the week within the current month.
const
DayOfYearCalendarField (6). Field number for get and set indicating the day number within the current year.
const
Decemberint (11). Value of the MONTH field indicating the twelfth month of the year.
const
DstOffsetCalendarField (16). Field number for get and set indicating the daylight savings offset from the ZONE_OFFSET in milliseconds.
const
EraCalendarField (0). Field number for get and set indicating the era, e.g.
const
Februaryint (1). Value of the MONTH field indicating the second month of the year.
const
FieldCountint (17). This is the total number of fields in this calendar.
const
Fridayint (6). Value of the DAY_OF_WEEK field indicating Friday.
const
HourCalendarField (10). Field number for get and set indicating the hour of the morning or afternoon.
const
HourOfDayCalendarField (11). Field number for get and set indicating the hour of the day.
const
Januaryint (0). Value of the MONTH field indicating the first month of the year.
const
Julyint (6). Value of the MONTH field indicating the seventh month of the year.
const
Juneint (5). Value of the MONTH field indicating the sixth month of the year.
const
Marchint (2). Value of the MONTH field indicating the third month of the year.
const
Mayint (4). Value of the MONTH field indicating the fifth month of the year.
const
MillisecondCalendarField (14). Field number for get and set indicating the millisecond within the second.
const
MinuteCalendarField (12). Field number for get and set indicating the minute within the hour.
const
Mondayint (2). Value of the DAY_OF_WEEK field indicating Monday.
const
MonthCalendarField (2). Field number for get and set indicating the month.
const
Novemberint (10). Value of the MONTH field indicating the eleventh month of the year.
const
Octoberint (9). Value of the MONTH field indicating the tenth month of the year.
const
Pmint (1). Value of the AM_PM field indicating the period of the day from noon to just before midnight.
const
Saturdayint (7). Value of the DAY_OF_WEEK field indicating Saturday.
const
SecondCalendarField (13). Field number for get and set indicating the second within the minute.
const
Septemberint (8). Value of the MONTH field indicating the ninth month of the year.
const
Sundayint (1). Value of the DAY_OF_WEEK field indicating Sunday.
const
Thursdayint (5). Value of the DAY_OF_WEEK field indicating Thursday.
const
Tuesdayint (3). Value of the DAY_OF_WEEK field indicating Tuesday.
const
Undecimberint (12). Value of the MONTH field indicating the thirteenth month of the year.
const
Wednesdayint (4). Value of the DAY_OF_WEEK field indicating Wednesday.
const
WeekOfMonthCalendarField (4). Field number for get and set indicating the week number within the current month.
const
WeekOfYearCalendarField (3). Field number for get and set indicating the week number within the current year.
const
YearCalendarField (1). Field number for get and set indicating the year.
const
ZoneOffsetCalendarField (15). Field number for get and set indicating the raw (non-DST) offset from GMT in milliseconds.

Public Properties

[read-only]
static
AllStylesCalendarStyle. Requests both SHORT and LONG styles in the map returned by Calendar.GetDisplayNames(int, System.Int32, System.Int32).
FirstDayOfWeekint. Returns the first day of the week for this Calendar.
[read-only]
static
InstanceCalendar. Constructs a new instance of the Calendar subclass appropriate for the default Locale and default TimeZone, set to the current date and time.
[read-only]
IsWeekDateSupportedbool. Documentation for this section has not yet been entered.
Lenientbool. Tests whether this Calendar accepts field values which are outside the valid range for the field.
[read-only]
static
LongCalendarStyle. Requests long names (such as "January") from Calendar.GetDisplayName(int, System.Int32, System.Int32) or Calendar.GetDisplayNames(int, System.Int32, System.Int32).
MinimalDaysInFirstWeekint. Returns the minimal days in the first week of the year.
[read-only]
static
ShortCalendarStyle. Requests short names (such as "Jan") from Calendar.GetDisplayName(int, System.Int32, System.Int32) or Calendar.GetDisplayNames(int, System.Int32, System.Int32).
TimeDate. Returns the time of this Calendar as a Date object.
TimeInMillislong. Returns the time represented by this Calendar, recomputing the time from its fields if necessary.
TimeZoneTimeZone. Returns the time zone used by this Calendar.
[read-only]
WeeksInWeekYearint. Documentation for this section has not yet been entered.
[read-only]
WeekYearint. Documentation for this section has not yet been entered.

Protected Properties

AreFieldsSetbool. True iff the values in fields[] correspond to time.
FieldsIList<int>. Contains broken-down field values for the current value of time if areFieldsSet is true, or stale data corresponding to some previous value otherwise.
IsTimeSetbool. Whether time corresponds to the values in fields[].
[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

abstract
Add(CalendarField, int)
Adds the given amount to a Calendar field.
After(Java.Lang.Object) : bool
Returns whether the Date represented by this Calendar instance is after the Date represented by the parameter.
Before(Java.Lang.Object) : bool
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() : Java.Lang.Object
Returns a shallow copy of this Calendar with the same properties.
CompareTo(Calendar) : int
Compares the time represented by this Calendar to that represented by the given Calendar.
Get(CalendarField) : int
Returns the value of the given field after computing the field values by calling complete() first.
GetActualMaximum(CalendarField) : int
Returns the maximum value of the given field for the current date.
GetActualMinimum(CalendarField) : int
Returns the minimum value of the given field for the current date.
static
GetAvailableLocales() : Locale[]
Returns an array of locales for which custom Calendar instances are available.
GetDisplayName(int, int, Locale) : string
Returns a human-readable string for the value of field using the given style and locale.
GetDisplayNames(int, int, Locale) : IDictionary<string, Java.Lang.Integer>
Returns a map of human-readable strings to corresponding values, for the given field, style, and locale.
abstract
GetGreatestMinimum(CalendarField) : int
Returns the greatest minimum value of the given field.
static
GetInstance(Locale) : Calendar
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) : Calendar
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) : Calendar
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) : int
Returns the smallest maximum value of the given field.
abstract
GetMaximum(CalendarField) : int
Returns the greatest maximum value of the given field.
abstract
GetMinimum(CalendarField) : int
Returns the smallest minimum value of the given field. this returns the smallest value that get can return for the given field.
IsSet(CalendarField) : bool
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.

Protected Methods

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) : int
Returns the value of the given field without recomputing.

Explicitly Implemented Interface Members

Java.Lang.IComparable.CompareToDocumentation for this section has not yet been entered.