IsoChronology 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.
The ISO calendar system.
[Android.Runtime.Register("java/time/chrono/IsoChronology", ApiSince=26, DoNotGenerateAcw=true)]
public sealed class IsoChronology : Java.Time.Chrono.AbstractChronology, IDisposable, Java.IO.ISerializable
[<Android.Runtime.Register("java/time/chrono/IsoChronology", ApiSince=26, DoNotGenerateAcw=true)>]
type IsoChronology = class
inherit AbstractChronology
interface ISerializable
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Inheritance
- Attributes
- Implements
Remarks
The ISO calendar system.
This chronology defines the rules of the ISO calendar system. This calendar system is based on the ISO-8601 standard, which is the de facto world calendar.
The fields are defined as follows: <ul> <li>era - There are two eras, 'Current Era' (CE) and 'Before Current Era' (BCE). <li>year-of-era - The year-of-era is the same as the proleptic-year for the current CE era. For the BCE era before the ISO epoch the year increases from 1 upwards as time goes backwards. <li>proleptic-year - The proleptic year is the same as the year-of-era for the current era. For the previous era, years have zero, then negative values. <li>month-of-year - There are 12 months in an ISO year, numbered from 1 to 12. <li>day-of-month - There are between 28 and 31 days in each of the ISO month, numbered from 1 to 31. Months 4, 6, 9 and 11 have 30 days, Months 1, 3, 5, 7, 8, 10 and 12 have 31 days. Month 2 has 28 days, or 29 in a leap year. <li>day-of-year - There are 365 days in a standard ISO year and 366 in a leap year. The days are numbered from 1 to 365 or 1 to 366. <li>leap-year - Leap years occur every 4 years, except where the year is divisble by 100 and not divisble by 400. </ul>
Added in 1.8.
Java documentation for java.time.chrono.IsoChronology.
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.
Properties
| Name | Description |
|---|---|
| CalendarType |
Gets the calendar type of the underlying calendar system - 'iso8601'. |
| Class |
Returns the runtime class of this |
| Handle |
The handle to the underlying Android instance. (Inherited from Object) |
| Id |
Gets the ID of the chronology - 'ISO'. |
| Instance |
Singleton instance of the ISO chronology. |
| IsIsoBased |
|
| JniIdentityHashCode |
Gets the identity hash code assigned to this Java peer by the interop runtime. (Inherited from Object) |
| JniManagedPeerState |
Gets the state flags last assigned by the runtime. (Inherited from JavaObject) |
| JniPeerMembers |
Gets the JNI metadata used to access members of this Java binding. |
| PeerReference |
Gets the JNI object reference for this Java peer. (Inherited from Object) |
| ThresholdClass |
Gets the Java class used for virtual method dispatch. (Inherited from AbstractChronology) |
| ThresholdType |
Gets the managed type that declares this Java binding. (Inherited from AbstractChronology) |
Methods
| Name | Description |
|---|---|
| Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
| CompareTo(IChronology) |
Compares this chronology to another chronology. (Inherited from AbstractChronology) |
| CompareTo(Object) |
Compares this object with the specified object for order. (Inherited from AbstractChronology) |
| Construct(JniObjectReference, JniObjectReferenceOptions) |
Delegates construction of this peer to the runtime's value manager. (Inherited from JavaObject) |
| Date(IEra, Int32, Int32, Int32) |
Obtains an ISO local date from the era, year-of-era, month-of-year and day-of-month fields. |
| Date(Int32, Int32, Int32) |
Obtains an ISO local date from the proleptic-year, month-of-year and day-of-month fields. |
| Date(ITemporalAccessor) |
Obtains an ISO local date from another date-time object. |
| DateEpochDay(Int64) |
Obtains an ISO local date from the epoch-day. |
| DateNow() |
Obtains the current ISO local date from the system clock in the default time-zone. |
| DateNow(Clock) |
Obtains the current ISO local date from the specified clock. |
| DateNow(ZoneId) |
Obtains the current ISO local date from the system clock in the specified time-zone. |
| DateYearDay(IEra, Int32, Int32) |
Obtains an ISO local date from the era, year-of-era and day-of-year fields. |
| DateYearDay(Int32, Int32) |
Obtains an ISO local date from the proleptic-year and day-of-year fields. |
| Dispose() |
Releases the resources held by this Java peer. (Inherited from Object) |
| Dispose(Boolean) |
Releases the resources held by this Java peer. (Inherited from Object) |
| DisposeUnlessReferenced() |
Asks the value manager to dispose this peer unless its mapping retains this same managed instance. (Inherited from JavaObject) |
| EpochSecond(Int32, Int32, Int32, Int32, Int32, Int32, ZoneOffset) |
Gets the number of seconds from the epoch of 1970-01-01T00:00:00Z. |
| Equals(Object) |
Tests whether another managed peer refers to the same Java object. (Inherited from JavaObject) |
| Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
| EraOf(Int32) |
Creates the chronology era object from the numeric value. |
| Eras() |
Gets the list of eras for the chronology. |
| GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
| IsLeapYear(Int64) |
Checks if the year is a leap year, according to the ISO proleptic calendar system rules. |
| JavaFinalize() |
Obsolete.
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
| LocalDateTime(ITemporalAccessor) |
Obtains an ISO local date-time from another date-time object. |
| 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) |
| Period(Int32, Int32, Int32) |
Obtains a period for this chronology based on years, months and days. |
| ProlepticYear(IEra, Int32) |
Calculates the proleptic-year given the era and year-of-era. |
| Range(ChronoField) |
Gets the range of valid values for the specified field. |
| ResolveDate(IDictionary<ITemporalField,Long>, ResolverStyle) |
Resolves parsed |
| SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
| SetPeerReference(JniObjectReference, JniObjectReferenceOptions) |
Stores a reference value in the control block without creating a JNI reference copy. (Inherited from JavaObject) |
| ToArray<T>() |
Creates a managed array from this Java array wrapper. (Inherited from Object) |
| ToString() |
Returns a string representation of the object. (Inherited from Object) |
| UnregisterFromRuntime() |
Unregisters this Java peer from the interop runtime. (Inherited from Object) |
| 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) |
| ZonedDateTime(Instant, ZoneId) |
Obtains an ISO zoned date-time in this chronology from an |
| ZonedDateTime(ITemporalAccessor) |
Obtains an ISO zoned date-time from another date-time object. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJavaPeerable.Disposed() |
Marks this peer as disposed and calls |
| IJavaPeerable.Finalized() |
Marks this peer as disposed and calls |
| IJavaPeerable.JniObjectReferenceControlBlock |
Gets the native control-block pointer used by this peer. (Inherited from JavaObject) |
| IJavaPeerable.SetJniIdentityHashCode(Int32) |
Stores the identity hash code supplied by the runtime. (Inherited from JavaObject) |
| IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) |
Replaces the stored managed peer state flags. (Inherited from JavaObject) |
| IJavaPeerable.SetPeerReference(JniObjectReference) |
Updates the peer reference and releases a disposed peer's control block when the reference is invalid. (Inherited from JavaObject) |
| IJavaPeerable.UnregisterFromRuntime() |
Removes this instance from the runtime's Java object lookup. |
Extension Methods
| Name | Description |
|---|---|
| GetJniTypeName(IJavaPeerable) |
Gets the JNI name of the type of the instance |
| JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
| JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
| JavaCast<TResult>(IJavaObject) |
Reuses a compatible managed peer or obtains a wrapper of the requested type. |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |