Calendar Calendar Class

Definition

[Android.Runtime.Register("android/icu/util/Calendar", ApiSince=24, DoNotGenerateAcw=true)]
public abstract class Calendar : Java.Lang.Object, IDisposable, Java.IO.ISerializable, Java.Lang.ICloneable, Java.Lang.IComparable
type Calendar = class
    inherit Object
    interface ISerializable
    interface IJavaObject
    interface IDisposable
    interface ICloneable
    interface IComparable
Inheritance
CalendarCalendar
Derived
Attributes
Implements

Remarks

Android platform documentation

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

Calendar() Calendar()
Calendar(IntPtr, JniHandleOwnership) Calendar(IntPtr, JniHandleOwnership)
Calendar(TimeZone, Locale) Calendar(TimeZone, Locale)
Calendar(TimeZone, ULocale) Calendar(TimeZone, ULocale)

Fields

Am Am
AmPm AmPm
April April
August August
BaseFieldCount BaseFieldCount
Date Date
DayOfMonth DayOfMonth
DayOfWeek DayOfWeek
DayOfWeekInMonth DayOfWeekInMonth
DayOfYear DayOfYear
December December
DowLocal DowLocal
DstOffset DstOffset
EpochJulianDay EpochJulianDay
Era Era
ExtendedYear ExtendedYear
February February
Friday Friday
GreatestMinimum GreatestMinimum
Hour Hour
HourOfDay HourOfDay
InternallySet InternallySet
IsLeapMonth IsLeapMonth
Jan11JulianDay Jan11JulianDay
January January
JulianDay JulianDay
July July
June June
LeastMaximum LeastMaximum
March March
MaxFieldCount MaxFieldCount
Maximum Maximum
MaxJulian MaxJulian
MaxMillis MaxMillis
May May
Millisecond Millisecond
MillisecondsInDay MillisecondsInDay
Minimum Minimum
MinimumUserStamp MinimumUserStamp
MinJulian MinJulian
MinMillis MinMillis
Minute Minute
Monday Monday
Month Month
November November
October October
OneDay OneDay
OneHour OneHour
OneMinute OneMinute
OneSecond OneSecond
OneWeek OneWeek
Pm Pm
ResolveRemap ResolveRemap
Saturday Saturday
Second Second
September September
Sunday Sunday
Thursday Thursday
Tuesday Tuesday
Undecimber Undecimber
Unset Unset
WalltimeFirst WalltimeFirst
WalltimeLast WalltimeLast
WalltimeNextValid WalltimeNextValid
Wednesday Wednesday
WeekOfMonth WeekOfMonth
WeekOfYear WeekOfYear
Year Year
YearWoy YearWoy
ZoneOffset ZoneOffset

Properties

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
FieldCount FieldCount
FirstDayOfWeek FirstDayOfWeek
GregorianDayOfMonth GregorianDayOfMonth
GregorianDayOfYear GregorianDayOfYear
GregorianMonth GregorianMonth
GregorianYear GregorianYear
Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
Instance Instance
IsWeekend IsWeekend
JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
Lenient Lenient
MaxDate MaxDate
MinDate MinDate
MinimalDaysInFirstWeek MinimalDaysInFirstWeek
PeerReference PeerReference Inherited from Object
RepeatedWallTimeOption RepeatedWallTimeOption
SkippedWallTimeOption SkippedWallTimeOption
ThresholdClass ThresholdClass
ThresholdType ThresholdType
Time Time
TimeInMillis TimeInMillis
TimeZone TimeZone
Type Type

Methods

Add(CalendarField, Int32) Add(CalendarField, Int32)
After(Object) After(Object)
Before(Object) Before(Object)
Clear() Clear()
Clear(CalendarField) Clear(CalendarField)
Clone() Clone()
CompareTo(Calendar) CompareTo(Calendar)
Complete() Complete()
ComputeFields() ComputeFields()
ComputeGregorianFields(Int32) ComputeGregorianFields(Int32)
ComputeGregorianMonthStart(Int32, Int32) ComputeGregorianMonthStart(Int32, Int32)
ComputeJulianDay() ComputeJulianDay()
ComputeMillisInDay() ComputeMillisInDay()
ComputeTime() ComputeTime()
ComputeZoneOffset(Int64, Int32) ComputeZoneOffset(Int64, Int32)
Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
FieldDifference(Date, CalendarField) FieldDifference(Date, CalendarField)
FieldName(CalendarField) FieldName(CalendarField)
FloorDivide(Int32, Int32) FloorDivide(Int32, Int32)
FloorDivide(Int32, Int32, Int32[]) FloorDivide(Int32, Int32, Int32[])
FloorDivide(Int64, Int32, Int32[]) FloorDivide(Int64, Int32, Int32[])
FloorDivide(Int64, Int64) FloorDivide(Int64, Int64)
Get(CalendarField) Get(CalendarField)
GetActualMaximum(CalendarField) GetActualMaximum(CalendarField)
GetActualMinimum(CalendarField) GetActualMinimum(CalendarField)
GetAvailableLocales() GetAvailableLocales()
GetDateTimeFormat(DateFormatStyle, Int32, Locale) GetDateTimeFormat(DateFormatStyle, Int32, Locale)
GetDateTimeFormat(DateFormatStyle, Int32, ULocale) GetDateTimeFormat(DateFormatStyle, Int32, ULocale)
GetDisplayName(Locale) GetDisplayName(Locale)
GetDisplayName(ULocale) GetDisplayName(ULocale)
GetFieldResolutionTable() GetFieldResolutionTable()
GetGreatestMinimum(CalendarField) GetGreatestMinimum(CalendarField)
GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetInstance(Locale) GetInstance(Locale)
GetInstance(TimeZone) GetInstance(TimeZone)
GetInstance(TimeZone, Locale) GetInstance(TimeZone, Locale)
GetInstance(TimeZone, ULocale) GetInstance(TimeZone, ULocale)
GetInstance(ULocale) GetInstance(ULocale)
GetKeywordValuesForLocale(String, ULocale, Boolean) GetKeywordValuesForLocale(String, ULocale, Boolean)
GetLeastMaximum(CalendarField) GetLeastMaximum(CalendarField)
GetLimit(CalendarField, Int32) GetLimit(CalendarField, Int32)
GetMaximum(CalendarField) GetMaximum(CalendarField)
GetMinimum(CalendarField) GetMinimum(CalendarField)
GetStamp(CalendarField) GetStamp(CalendarField)
GetWeekData() GetWeekData()
GetWeekDataForRegion(String) GetWeekDataForRegion(String)
GregorianMonthLength(Int32, Int32) GregorianMonthLength(Int32, Int32)
GregorianPreviousMonthLength(Int32, Int32) GregorianPreviousMonthLength(Int32, Int32)
HandleComputeFields(Int32) HandleComputeFields(Int32)
HandleComputeJulianDay(Int32) HandleComputeJulianDay(Int32)
HandleComputeMonthStart(Int32, Int32, Boolean) HandleComputeMonthStart(Int32, Int32, Boolean)
HandleCreateFields() HandleCreateFields()
HandleGetDateFormat(String, Locale) HandleGetDateFormat(String, Locale)
HandleGetDateFormat(String, String, Locale) HandleGetDateFormat(String, String, Locale)
HandleGetDateFormat(String, ULocale) HandleGetDateFormat(String, ULocale)
HandleGetExtendedYear() HandleGetExtendedYear()
HandleGetLimit(CalendarField, Int32) HandleGetLimit(CalendarField, Int32)
HandleGetMonthLength(Int32, Int32) HandleGetMonthLength(Int32, Int32)
HandleGetYearLength(Int32) HandleGetYearLength(Int32)
InternalGet(CalendarField) InternalGet(CalendarField)
InternalGet(CalendarField, Int32) InternalGet(CalendarField, Int32)
InternalGetTimeInMillis() InternalGetTimeInMillis()
InternalSet(CalendarField, Int32) InternalSet(CalendarField, Int32)
InvokeIsWeekend(Date) InvokeIsWeekend(Date)
IsEquivalentTo(Calendar) IsEquivalentTo(Calendar)
IsGregorianLeapYear(Int32) IsGregorianLeapYear(Int32)
IsSet(CalendarField) IsSet(CalendarField)
JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
JulianDayToDayOfWeek(Int32) JulianDayToDayOfWeek(Int32)
JulianDayToMillis(Int32) JulianDayToMillis(Int32)
MillisToJulianDay(Int64) MillisToJulianDay(Int64)
NewerField(Int32, Int32) NewerField(Int32, Int32)
NewestStamp(Int32, Int32, Int32) NewestStamp(Int32, Int32, Int32)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
PinField(CalendarField) PinField(CalendarField)
PrepareGetActual(CalendarField, Boolean) PrepareGetActual(CalendarField, Boolean)
ResolveFields(Int32[][][]) ResolveFields(Int32[][][])
Roll(CalendarField, Boolean) Roll(CalendarField, Boolean)
Roll(CalendarField, Int32) Roll(CalendarField, Int32)
Set(CalendarField, Int32) Set(CalendarField, Int32)
Set(Int32, Int32, Int32) Set(Int32, Int32, Int32)
Set(Int32, Int32, Int32, Int32, Int32) Set(Int32, Int32, Int32, Int32, Int32)
Set(Int32, Int32, Int32, Int32, Int32, Int32) Set(Int32, Int32, Int32, Int32, Int32, Int32)
SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetWeekData(Calendar+WeekData) SetWeekData(Calendar+WeekData)
ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
ValidateField(CalendarField) ValidateField(CalendarField)
ValidateField(CalendarField, Int32, Int32) ValidateField(CalendarField, Int32, Int32)
ValidateFields() ValidateFields()
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
WeekNumber(Int32, Int32) WeekNumber(Int32, Int32)
WeekNumber(Int32, Int32, Int32) WeekNumber(Int32, Int32, Int32)

Explicit Interface Implementations

IComparable.CompareTo(Object) IComparable.CompareTo(Object)
IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to