GregorianCalendar Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
<strong>[icu enhancement]</strong> ICU's replacement for java.util.GregorianCalendar
.
[Android.Runtime.Register("android/icu/util/GregorianCalendar", ApiSince=24, DoNotGenerateAcw=true)]
public class GregorianCalendar : Android.Icu.Util.Calendar
[<Android.Runtime.Register("android/icu/util/GregorianCalendar", ApiSince=24, DoNotGenerateAcw=true)>]
type GregorianCalendar = class
inherit Calendar
- Inheritance
- Derived
- Attributes
Remarks
<strong>[icu enhancement]</strong> ICU's replacement for java.util.GregorianCalendar
. Methods, fields, and other functionality specific to ICU are labeled '<strong>[icu]</strong>'.
GregorianCalendar
is a concrete subclass of Calendar
and provides the standard calendar used by most of the world.
The standard (Gregorian) calendar has 2 eras, BC and AD.
This implementation handles a single discontinuity, which corresponds by default to the date the Gregorian calendar was instituted (October 15, 1582 in some countries, later in others). The cutover date may be changed by the caller by calling setGregorianChange()
.
Historically, in those countries which adopted the Gregorian calendar first, October 4, 1582 was thus followed by October 15, 1582. This calendar models this correctly. Before the Gregorian cutover, GregorianCalendar
implements the Julian calendar. The only difference between the Gregorian and the Julian calendar is the leap year rule. The Julian calendar specifies leap years every four years, whereas the Gregorian calendar omits century years which are not divisible by 400.
GregorianCalendar
implements <em>proleptic</em> Gregorian and Julian calendars. That is, dates are computed by extrapolating the current rules indefinitely far backward and forward in time. As a result, GregorianCalendar
may be used for all years to generate meaningful and consistent results. However, dates obtained using GregorianCalendar
are historically accurate only from March 1, 4 AD onward, when modern Julian calendar rules were adopted. Before this date, leap year rules were applied irregularly, and before 45 BC the Julian calendar did not even exist.
Prior to the institution of the Gregorian calendar, New Year's Day was March 25. To avoid confusion, this calendar always uses January 1. A manual adjustment may be made if desired for dates that are prior to the Gregorian changeover and which fall between January 1 and March 24.
Values calculated for the WEEK_OF_YEAR
field range from 1 to 53. Week 1 for a year is the earliest seven day period starting on getFirstDayOfWeek()
that contains at least getMinimalDaysInFirstWeek()
days from that year. It thus depends on the values of getMinimalDaysInFirstWeek()
, getFirstDayOfWeek()
, and the day of the week of January 1. Weeks between week 1 of one year and week 1 of the following year are numbered sequentially from 2 to 52 or 53 (as needed).
For example, January 1, 1998 was a Thursday. If getFirstDayOfWeek()
is MONDAY
and getMinimalDaysInFirstWeek()
is 4 (these are the values reflecting ISO 8601 and many national standards), then week 1 of 1998 starts on December 29, 1997, and ends on January 4, 1998. If, however, getFirstDayOfWeek()
is SUNDAY
, then week 1 of 1998 starts on January 4, 1998, and ends on January 10, 1998; the first three days of 1998 then are part of week 53 of 1997.
Values calculated for the WEEK_OF_MONTH
field range from 0 or 1 to 4 or 5. Week 1 of a month (the days with WEEK_OF_MONTH = 1
) is the earliest set of at least getMinimalDaysInFirstWeek()
contiguous days in that month, ending on the day before getFirstDayOfWeek()
. Unlike week 1 of a year, week 1 of a month may be shorter than 7 days, need not start on getFirstDayOfWeek()
, and will not include days of the previous month. Days of a month before week 1 have a WEEK_OF_MONTH
of 0.
For example, if getFirstDayOfWeek()
is SUNDAY
and getMinimalDaysInFirstWeek()
is 4, then the first week of January 1998 is Sunday, January 4 through Saturday, January 10. These days have a WEEK_OF_MONTH
of 1. Thursday, January 1 through Saturday, January 3 have a WEEK_OF_MONTH
of 0. If getMinimalDaysInFirstWeek()
is changed to 3, then January 1 through January 3 have a WEEK_OF_MONTH
of 1.
<strong>Example:</strong> <blockquote>
// get the supported ids for GMT-08:00 (Pacific Standard Time)
String[] ids = TimeZone.getAvailableIDs(-8 * 60 * 60 * 1000);
// if no ids were returned, something is wrong. get out.
if (ids.length == 0)
System.exit(0);
// begin output
System.out.println("Current Time");
// create a Pacific Standard Time time zone
SimpleTimeZone pdt = new SimpleTimeZone(-8 * 60 * 60 * 1000, ids[0]);
// set up rules for daylight savings time
pdt.setStartRule(Calendar.MARCH, 2, Calendar.SUNDAY, 2 * 60 * 60 * 1000);
pdt.setEndRule(Calendar.NOVEMBER, 1, Calendar.SUNDAY, 2 * 60 * 60 * 1000);
// create a GregorianCalendar with the Pacific Daylight time zone
// and the current date and time
Calendar calendar = new GregorianCalendar(pdt);
Date trialTime = new Date();
calendar.setTime(trialTime);
// print out a bunch of interesting things
System.out.println("ERA: " + calendar.get(Calendar.ERA));
System.out.println("YEAR: " + calendar.get(Calendar.YEAR));
System.out.println("MONTH: " + calendar.get(Calendar.MONTH));
System.out.println("WEEK_OF_YEAR: " + calendar.get(Calendar.WEEK_OF_YEAR));
System.out.println("WEEK_OF_MONTH: " + calendar.get(Calendar.WEEK_OF_MONTH));
System.out.println("DATE: " + calendar.get(Calendar.DATE));
System.out.println("DAY_OF_MONTH: " + calendar.get(Calendar.DAY_OF_MONTH));
System.out.println("DAY_OF_YEAR: " + calendar.get(Calendar.DAY_OF_YEAR));
System.out.println("DAY_OF_WEEK: " + calendar.get(Calendar.DAY_OF_WEEK));
System.out.println("DAY_OF_WEEK_IN_MONTH: "
+ calendar.get(Calendar.DAY_OF_WEEK_IN_MONTH));
System.out.println("AM_PM: " + calendar.get(Calendar.AM_PM));
System.out.println("HOUR: " + calendar.get(Calendar.HOUR));
System.out.println("HOUR_OF_DAY: " + calendar.get(Calendar.HOUR_OF_DAY));
System.out.println("MINUTE: " + calendar.get(Calendar.MINUTE));
System.out.println("SECOND: " + calendar.get(Calendar.SECOND));
System.out.println("MILLISECOND: " + calendar.get(Calendar.MILLISECOND));
System.out.println("ZONE_OFFSET: "
+ (calendar.get(Calendar.ZONE_OFFSET)/(60*60*1000)));
System.out.println("DST_OFFSET: "
+ (calendar.get(Calendar.DST_OFFSET)/(60*60*1000)));
System.out.println("Current Time, with hour reset to 3");
calendar.clear(Calendar.HOUR_OF_DAY); // so doesn't override
calendar.set(Calendar.HOUR, 3);
System.out.println("ERA: " + calendar.get(Calendar.ERA));
System.out.println("YEAR: " + calendar.get(Calendar.YEAR));
System.out.println("MONTH: " + calendar.get(Calendar.MONTH));
System.out.println("WEEK_OF_YEAR: " + calendar.get(Calendar.WEEK_OF_YEAR));
System.out.println("WEEK_OF_MONTH: " + calendar.get(Calendar.WEEK_OF_MONTH));
System.out.println("DATE: " + calendar.get(Calendar.DATE));
System.out.println("DAY_OF_MONTH: " + calendar.get(Calendar.DAY_OF_MONTH));
System.out.println("DAY_OF_YEAR: " + calendar.get(Calendar.DAY_OF_YEAR));
System.out.println("DAY_OF_WEEK: " + calendar.get(Calendar.DAY_OF_WEEK));
System.out.println("DAY_OF_WEEK_IN_MONTH: "
+ calendar.get(Calendar.DAY_OF_WEEK_IN_MONTH));
System.out.println("AM_PM: " + calendar.get(Calendar.AM_PM));
System.out.println("HOUR: " + calendar.get(Calendar.HOUR));
System.out.println("HOUR_OF_DAY: " + calendar.get(Calendar.HOUR_OF_DAY));
System.out.println("MINUTE: " + calendar.get(Calendar.MINUTE));
System.out.println("SECOND: " + calendar.get(Calendar.SECOND));
System.out.println("MILLISECOND: " + calendar.get(Calendar.MILLISECOND));
System.out.println("ZONE_OFFSET: "
+ (calendar.get(Calendar.ZONE_OFFSET)/(60*60*1000))); // in hours
System.out.println("DST_OFFSET: "
+ (calendar.get(Calendar.DST_OFFSET)/(60*60*1000))); // in hours
</blockquote>
GregorianCalendar usually should be instantiated using android.icu.util.Calendar#getInstance(ULocale)
passing in a ULocale
with the tag "@calendar=gregorian"
.
Java documentation for android.icu.util.GregorianCalendar
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructors
GregorianCalendar() |
Constructs a default GregorianCalendar using the current time
in the default time zone with the default |
GregorianCalendar(Int32, Int32, Int32, Int32, Int32, Int32) |
Constructs a GregorianCalendar with the given date
and time set for the default time zone with the default |
GregorianCalendar(Int32, Int32, Int32, Int32, Int32) |
Constructs a GregorianCalendar with the given date
and time set for the default time zone with the default |
GregorianCalendar(Int32, Int32, Int32) |
Constructs a GregorianCalendar with the given date set
in the default time zone with the default |
GregorianCalendar(IntPtr, JniHandleOwnership) | |
GregorianCalendar(Locale) |
Constructs a GregorianCalendar based on the current time in the default time zone with the given locale. |
GregorianCalendar(TimeZone, Locale) |
<strong>[icu]</strong> Constructs a GregorianCalendar based on the current time in the given time zone with the given locale. |
GregorianCalendar(TimeZone, ULocale) |
Constructs a GregorianCalendar based on the current time in the given time zone with the given locale. |
GregorianCalendar(TimeZone) |
Constructs a GregorianCalendar based on the current time
in the given time zone with the default |
GregorianCalendar(ULocale) |
<strong>[icu]</strong> Constructs a GregorianCalendar based on the current time in the default time zone with the given locale. |
Fields
Ad |
Value of the |
Am |
Value of the |
AmPm |
Obsolete.
Field number for |
April |
Value of the |
August |
Value of the |
BaseFieldCount |
The number of fields defined by this class. (Inherited from Calendar) |
Bc |
Value of the |
Date |
Obsolete.
Field number for |
DayOfMonth |
Obsolete.
Field number for |
DayOfWeek |
Obsolete.
Field number for |
DayOfWeekInMonth |
Obsolete.
Field number for |
DayOfYear |
Obsolete.
Field number for |
December |
Value of the |
DowLocal |
Obsolete.
<strong>[icu]</strong> Field number for |
DstOffset |
Obsolete.
Field number for |
EpochJulianDay |
The Julian day of the epoch, that is, January 1, 1970 on the Gregorian calendar. (Inherited from Calendar) |
Era |
Obsolete.
Field number for |
ExtendedYear |
Obsolete.
<strong>[icu]</strong> Field number for |
February |
Value of the |
Friday |
Value of the |
GreatestMinimum |
Limit type for |
Hour |
Obsolete.
Field number for |
HourOfDay |
Obsolete.
Field number for |
InternallySet |
Value of the time stamp |
IsLeapMonth |
<strong>[icu]</strong> Field indicating whether or not the current month is a leap month. (Inherited from Calendar) |
Jan11JulianDay |
The Julian day of the Gregorian epoch, that is, January 1, 1 on the Gregorian calendar. (Inherited from Calendar) |
January |
Value of the |
JulianDay |
Obsolete.
<strong>[icu]</strong> Field number for |
July |
Value of the |
June |
Value of the |
LeastMaximum |
Limit type for |
March |
Value of the |
MaxFieldCount |
The maximum number of fields possible. (Inherited from Calendar) |
Maximum |
Limit type for |
MaxJulian |
The maximum supported Julian day. (Inherited from Calendar) |
MaxMillis |
The maximum supported epoch milliseconds. (Inherited from Calendar) |
May |
Value of the |
Millisecond |
Obsolete.
Field number for |
MillisecondsInDay |
Obsolete.
<strong>[icu]</strong> Field number for |
Minimum |
Limit type for |
MinimumUserStamp |
If the time stamp |
MinJulian |
The minimum supported Julian day. (Inherited from Calendar) |
MinMillis |
The minimum supported epoch milliseconds. (Inherited from Calendar) |
Minute |
Obsolete.
Field number for |
Monday |
Value of the |
Month |
Obsolete.
Field number for |
November |
Value of the |
October |
Value of the |
OneDay |
The number of milliseconds in one day. (Inherited from Calendar) |
OneHour |
The number of milliseconds in one hour. (Inherited from Calendar) |
OneMinute |
The number of milliseconds in one minute. (Inherited from Calendar) |
OneSecond |
The number of milliseconds in one second. (Inherited from Calendar) |
OneWeek |
The number of milliseconds in one week. (Inherited from Calendar) |
Pm |
Value of the |
ResolveRemap |
Value to OR against resolve table field values for remapping. (Inherited from Calendar) |
Saturday |
Value of the |
Second |
Obsolete.
Field number for |
September |
Value of the |
Sunday |
Value of the |
Thursday |
Value of the |
Tuesday |
Value of the |
Undecimber |
Value of the |
Unset |
Value of the time stamp |
WalltimeFirst |
Obsolete.
<strong>[icu]</strong>Option used by |
WalltimeLast |
Obsolete.
<strong>[icu]</strong>Option used by |
WalltimeNextValid |
Obsolete.
<strong>[icu]</strong>Option used by |
Wednesday |
Value of the |
WeekOfMonth |
Obsolete.
Field number for |
WeekOfYear |
Obsolete.
Field number for |
Year |
Obsolete.
Field number for |
YearWoy |
Obsolete.
<strong>[icu]</strong> Field number for |
ZoneOffset |
Obsolete.
Field number for |
Properties
Class |
Returns the runtime class of this |
FieldCount |
<strong>[icu]</strong> Returns the number of fields defined by this calendar. (Inherited from Calendar) |
FirstDayOfWeek |
Returns what the first day of the week is,
where 1 = |
GregorianChange |
Gets the Gregorian Calendar change date. -or- Sets the GregorianCalendar change date. |
GregorianDayOfMonth |
Returns the day of month (1-based) on the Gregorian calendar as
computed by |
GregorianDayOfYear |
Returns the day of year (1-based) on the Gregorian calendar as
computed by |
GregorianMonth |
Returns the month (0-based) on the Gregorian calendar as computed by
|
GregorianYear |
Returns the extended year on the Gregorian calendar as computed by
|
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
InvertGregorian |
Used by handleComputeJulianDay() and handleComputeMonthStart(). |
IsGregorian |
Used by handleComputeJulianDay() and handleComputeMonthStart(). |
IsWeekend |
<strong>[icu]</strong> Returns true if this Calendar's current date and time is in the weekend in this calendar system. (Inherited from Calendar) |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
Lenient |
Tell whether date/time interpretation is to be lenient. -or- Specify whether or not date/time interpretation is to be lenient. (Inherited from Calendar) |
MinimalDaysInFirstWeek |
Returns what the minimal days required in the first week of the year are. -or- Sets what the minimal days required in the first week of the year are. (Inherited from Calendar) |
PeerReference | (Inherited from Object) |
RepeatedWallTimeOption |
<strong>[icu]</strong>Gets the behavior for handling wall time repeating multiple times at negative time zone offset transitions. -or- <strong>[icu]</strong>Sets the behavior for handling wall time repeating multiple times at negative time zone offset transitions. (Inherited from Calendar) |
SkippedWallTimeOption |
<strong>[icu]</strong>Gets the behavior for handling skipped wall time at positive time zone offset transitions. -or- <strong>[icu]</strong>Sets the behavior for handling skipped wall time at positive time zone offset transitions. (Inherited from Calendar) |
ThresholdClass | |
ThresholdType | |
Time |
Returns this Calendar's current time. -or- Sets this Calendar's current time with the given Date. (Inherited from Calendar) |
TimeInMillis |
Returns this Calendar's current time as a long. -or- Sets this Calendar's current time from the given long value. (Inherited from Calendar) |
TimeZone |
Returns the time zone. -or- Sets the time zone with the given time zone value. (Inherited from Calendar) |
Type |
<strong>[icu]</strong> Returns the calendar type name string for this Calendar object. (Inherited from Calendar) |
Methods
Add(CalendarField, Int32) |
Add a signed amount to a specified field, using this calendar's rules. (Inherited from Calendar) |
After(Object) |
Compares the time field records. (Inherited from Calendar) |
Before(Object) |
Compares the time field records. (Inherited from Calendar) |
Clear() |
Clears the values of all the time fields. (Inherited from Calendar) |
Clear(CalendarField) |
Clears the value in the given time field. (Inherited from Calendar) |
Clone() |
Overrides Cloneable (Inherited from Calendar) |
CompareTo(Calendar) |
Compares the times (in millis) represented by two
|
Complete() |
Fills in any unset fields in the time field list. (Inherited from Calendar) |
ComputeFields() |
Converts the current millisecond time value |
ComputeGregorianFields(Int32) |
Compute the Gregorian calendar year, month, and day of month from the Julian day. (Inherited from Calendar) |
ComputeGregorianMonthStart(Int32, Int32) |
Compute the Julian day of a month of the Gregorian calendar. (Inherited from Calendar) |
ComputeJulianDay() |
Compute the Julian day number as specified by this calendar's fields. (Inherited from Calendar) |
ComputeMillisInDay() |
Compute the milliseconds in the day from the fields. (Inherited from Calendar) |
ComputeTime() |
Converts the current field values in |
ComputeZoneOffset(Int64, Int32) |
This method can assume EXTENDED_YEAR has been set. (Inherited from Calendar) |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
FieldDifference(Date, CalendarField) |
<strong>[icu]</strong> Returns the difference between the given time and the time this calendar object is set to. (Inherited from Calendar) |
FieldName(CalendarField) |
Returns a string name for a field, for debugging and exceptions. (Inherited from Calendar) |
Get(CalendarField) |
Returns the value for a given time field. (Inherited from Calendar) |
GetActualMaximum(CalendarField) |
Returns the maximum value that this field could have, given the current date. (Inherited from Calendar) |
GetActualMinimum(CalendarField) |
Returns the minimum value that this field could have, given the current date. (Inherited from Calendar) |
GetDateTimeFormat(DateFormatStyle, Int32, Locale) |
<strong>[icu]</strong> Returns a |
GetDateTimeFormat(DateFormatStyle, Int32, ULocale) |
<strong>[icu]</strong> Returns a |
GetDisplayName(Locale) |
Returns the name of this calendar in the language of the given locale. (Inherited from Calendar) |
GetDisplayName(ULocale) |
Returns the name of this calendar in the language of the given locale. (Inherited from Calendar) |
GetFieldResolutionTable() |
Returns the field resolution array for this calendar. (Inherited from Calendar) |
GetGreatestMinimum(CalendarField) |
Returns the highest minimum value for the given field if varies. (Inherited from Calendar) |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
GetLeastMaximum(CalendarField) |
Returns the lowest maximum value for the given field if varies. (Inherited from Calendar) |
GetLimit(CalendarField, Int32) |
Returns a limit for a field. (Inherited from Calendar) |
GetMaximum(CalendarField) |
Returns the maximum value for the given time field. (Inherited from Calendar) |
GetMinimum(CalendarField) |
Returns the minimum value for the given time field. (Inherited from Calendar) |
GetStamp(CalendarField) |
Returns the timestamp of a field. (Inherited from Calendar) |
GetWeekData() | (Inherited from Calendar) |
HandleComputeFields(Int32) |
Subclasses may override this method to compute several fields specific to each calendar system. (Inherited from Calendar) |
HandleComputeJulianDay(Int32) |
Subclasses may override this. (Inherited from Calendar) |
HandleComputeMonthStart(Int32, Int32, Boolean) |
Return JD of start of given month/year |
HandleCreateFields() |
Subclasses that use additional fields beyond those defined in
|
HandleGetDateFormat(String, Locale) |
Creates a |
HandleGetDateFormat(String, String, Locale) |
Creates a |
HandleGetDateFormat(String, ULocale) |
Creates a |
HandleGetExtendedYear() | |
HandleGetLimit(CalendarField, Int32) | |
HandleGetMonthLength(Int32, Int32) |
Returns the number of days in the given month of the given extended year of this calendar system. (Inherited from Calendar) |
HandleGetYearLength(Int32) |
Returns the number of days in the given extended year of this calendar system. (Inherited from Calendar) |
InternalGet(CalendarField, Int32) |
Returns the value for a given time field, or return the given default value if the field is not set. (Inherited from Calendar) |
InternalGet(CalendarField) |
Returns the value for a given time field. (Inherited from Calendar) |
InternalGetTimeInMillis() |
Returns the current milliseconds without recomputing. (Inherited from Calendar) |
InternalSet(CalendarField, Int32) |
Set a field to a value. (Inherited from Calendar) |
InvokeIsWeekend(Date) |
<strong>[icu]</strong> Returns true if the given date and time is in the weekend in this calendar system. (Inherited from Calendar) |
IsEquivalentTo(Calendar) |
<strong>[icu]</strong> Returns true if the given Calendar object is equivalent to this one. (Inherited from Calendar) |
IsLeapYear(Int32) |
Determines if the given year is a leap year. |
IsSet(CalendarField) |
Determines if the given time field has a value set. (Inherited from Calendar) |
JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
NewerField(Int32, Int32) |
Returns the field that is newer, either defaultField, or alternateField. (Inherited from Calendar) |
NewestStamp(Int32, Int32, Int32) |
Returns the newest stamp of a given range of fields. (Inherited from Calendar) |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
PinField(CalendarField) |
Adjust the specified field so that it is within the allowable range for the date to which this calendar is set. (Inherited from Calendar) |
PrepareGetActual(CalendarField, Boolean) |
Prepare this calendar for computing the actual minimum or maximum. (Inherited from Calendar) |
ResolveFields(Int32[][][]) |
Given a precedence table, return the newest field combination in the table, or -1 if none is found. (Inherited from Calendar) |
Roll(CalendarField, Boolean) |
Rolls (up/down) a single unit of time on the given field. (Inherited from Calendar) |
Roll(CalendarField, Int32) |
Rolls (up/down) a specified amount time on the given field. (Inherited from Calendar) |
Set(CalendarField, Int32) |
Sets the time field with the given value. (Inherited from Calendar) |
Set(Int32, Int32, Int32, Int32, Int32, Int32) |
Sets the values for the fields year, month, date, hour, minute, and second. (Inherited from Calendar) |
Set(Int32, Int32, Int32, Int32, Int32) |
Sets the values for the fields year, month, date, hour, and minute. (Inherited from Calendar) |
Set(Int32, Int32, Int32) |
Sets the values for the fields year, month, and date. (Inherited from Calendar) |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
SetWeekData(Calendar+WeekData) | (Inherited from Calendar) |
ToArray<T>() | (Inherited from Object) |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
UnregisterFromRuntime() | (Inherited from Object) |
ValidateField(CalendarField, Int32, Int32) |
Validate a single field of this calendar given its minimum and maximum allowed value. (Inherited from Calendar) |
ValidateField(CalendarField) |
Validate a single field of this calendar. (Inherited from Calendar) |
ValidateFields() |
Ensure that each field is within its valid range by calling |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
WeekNumber(Int32, Int32, Int32) |
Returns the week number of a day, within a period. (Inherited from Calendar) |
WeekNumber(Int32, Int32) |
Returns the week number of a day, within a period. (Inherited from Calendar) |
Explicit Interface Implementations
IComparable.CompareTo(Object) | (Inherited from Calendar) |
IJavaPeerable.Disposed() | (Inherited from Object) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
IJavaPeerable.Finalized() | (Inherited from Object) |
IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |
Gets the JNI name of the type of the instance |
JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |