Calendar Class

Definition

[Android.Runtime.Register("android/icu/util/Calendar", ApiSince=24, DoNotGenerateAcw=true)]
public abstract class Calendar : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.IO.ISerializable, Java.Lang.ICloneable, Java.Lang.IComparable
[<Android.Runtime.Register("android/icu/util/Calendar", ApiSince=24, DoNotGenerateAcw=true)>]
type Calendar = class
    inherit Object
    interface ISerializable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
    interface ICloneable
    interface IComparable
Inheritance
Calendar
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(IntPtr, JniHandleOwnership)
Calendar(TimeZone, Locale)
Calendar(TimeZone, ULocale)

Fields

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

Properties

Class

Returns the runtime class of this Object.

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

The handle to the underlying Android instance.

(Inherited from Object)
Instance
IsWeekend
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Lenient
MaxDate
MinDate
MinimalDaysInFirstWeek
PeerReference (Inherited from Object)
RepeatedWallTimeOption
SkippedWallTimeOption
ThresholdClass
ThresholdType
Time
TimeInMillis
TimeZone
Type

Methods

Add(CalendarField, Int32)
After(Object)
Before(Object)
Clear()
Clear(CalendarField)
Clone()
CompareTo(Calendar)
Complete()
ComputeFields()
ComputeGregorianFields(Int32)
ComputeGregorianMonthStart(Int32, Int32)
ComputeJulianDay()
ComputeMillisInDay()
ComputeTime()
ComputeZoneOffset(Int64, Int32)
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)
FieldName(CalendarField)
FloorDivide(Int32, Int32, Int32[])
FloorDivide(Int32, Int32)
FloorDivide(Int64, Int32, Int32[])
FloorDivide(Int64, Int64)
Get(CalendarField)
GetActualMaximum(CalendarField)
GetActualMinimum(CalendarField)
GetAvailableLocales()
GetDateTimeFormat(DateFormatStyle, Int32, Locale)
GetDateTimeFormat(DateFormatStyle, Int32, ULocale)
GetDisplayName(Locale)
GetDisplayName(ULocale)
GetFieldResolutionTable()
GetGreatestMinimum(CalendarField)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetInstance(Locale)
GetInstance(TimeZone, Locale)
GetInstance(TimeZone, ULocale)
GetInstance(TimeZone)
GetInstance(ULocale)
GetKeywordValuesForLocale(String, ULocale, Boolean)
GetLeastMaximum(CalendarField)
GetLimit(CalendarField, Int32)
GetMaximum(CalendarField)
GetMinimum(CalendarField)
GetStamp(CalendarField)
GetWeekData()
GetWeekDataForRegion(String)
GregorianMonthLength(Int32, Int32)
GregorianPreviousMonthLength(Int32, Int32)
HandleComputeFields(Int32)
HandleComputeJulianDay(Int32)
HandleComputeMonthStart(Int32, Int32, Boolean)
HandleCreateFields()
HandleGetDateFormat(String, Locale)
HandleGetDateFormat(String, String, Locale)
HandleGetDateFormat(String, ULocale)
HandleGetExtendedYear()
HandleGetLimit(CalendarField, Int32)
HandleGetMonthLength(Int32, Int32)
HandleGetYearLength(Int32)
InternalGet(CalendarField, Int32)
InternalGet(CalendarField)
InternalGetTimeInMillis()
InternalSet(CalendarField, Int32)
InvokeIsWeekend(Date)
IsEquivalentTo(Calendar)
IsGregorianLeapYear(Int32)
IsSet(CalendarField)
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)
JulianDayToDayOfWeek(Int32)
JulianDayToMillis(Int32)
MillisToJulianDay(Int64)
NewerField(Int32, Int32)
NewestStamp(Int32, Int32, Int32)
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)
PrepareGetActual(CalendarField, Boolean)
ResolveFields(Int32[][][])
Roll(CalendarField, Boolean)
Roll(CalendarField, Int32)
Set(CalendarField, Int32)
Set(Int32, Int32, Int32, Int32, Int32, Int32)
Set(Int32, Int32, Int32, Int32, Int32)
Set(Int32, Int32, Int32)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

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

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
ValidateField(CalendarField, Int32, Int32)
ValidateField(CalendarField)
ValidateFields()
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)
WeekNumber(Int32, Int32)

Explicit Interface Implementations

IComparable.CompareTo(Object)
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)

Applies to