Udostępnij za pośrednictwem


IsoChronology Class

Definition

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.Interop.IJavaPeerable, 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

CalendarType

Gets the calendar type of the underlying calendar system - 'iso8601'.

Class

Returns the runtime class of this Object.

(Inherited from Object)
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.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass (Inherited from AbstractChronology)
ThresholdType (Inherited from AbstractChronology)

Methods

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) (Inherited from AbstractChronology)
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() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
EpochSecond(Int32, Int32, Int32, Int32, Int32, Int32, ZoneOffset)

Gets the number of seconds from the epoch of 1970-01-01T00:00:00Z.

Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
EraOf(Int32)
Eras()
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()

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)
Range(ChronoField)
ResolveDate(IDictionary<ITemporalField,Long>, ResolverStyle)

Resolves parsed ChronoField values into a date during parsing.

(Inherited from AbstractChronology)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (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 Instant.

ZonedDateTime(ITemporalAccessor)

Obtains an ISO zoned date-time from another date-time object.

Explicit Interface Implementations

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