다음을 통해 공유


IChronoZonedDateTime Interface

Definition

A date-time with a time-zone in an arbitrary chronology, intended for advanced globalization use cases.

[Android.Runtime.Register("java/time/chrono/ChronoZonedDateTime", "", "Java.Time.Chrono.IChronoZonedDateTimeInvoker", ApiSince=26)]
[Java.Interop.JavaTypeParameters(new System.String[] { "D extends java.time.chrono.ChronoLocalDate" })]
public interface IChronoZonedDateTime : IDisposable, Java.Interop.IJavaPeerable, Java.Lang.IComparable, Java.Time.Temporal.ITemporal
[<Android.Runtime.Register("java/time/chrono/ChronoZonedDateTime", "", "Java.Time.Chrono.IChronoZonedDateTimeInvoker", ApiSince=26)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "D extends java.time.chrono.ChronoLocalDate" })>]
type IChronoZonedDateTime = interface
    interface IComparable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
    interface ITemporal
    interface ITemporalAccessor
Derived
Attributes
Implements

Remarks

A date-time with a time-zone in an arbitrary chronology, intended for advanced globalization use cases.

<b>Most applications should declare method signatures, fields and variables as ZonedDateTime, not this interface.</b>

A ChronoZonedDateTime is the abstract representation of an offset date-time where the Chronology chronology, or calendar system, is pluggable. The date-time is defined in terms of fields expressed by TemporalField, where most common implementations are defined in ChronoField. The chronology defines how the calendar system operates and the meaning of the standard fields.

<h2>When to use this interface</h2> The design of the API encourages the use of ZonedDateTime rather than this interface, even in the case where the application needs to deal with multiple calendar systems. The rationale for this is explored in detail in ChronoLocalDate.

Ensure that the discussion in ChronoLocalDate has been read and understood before using this interface.

Added in 1.8.

Java documentation for java.time.chrono.ChronoZonedDateTime.

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

Chronology
Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
JniIdentityHashCode

Returns the value of java.lang.System.identityHashCode() for the wrapped instance.

(Inherited from IJavaPeerable)
JniManagedPeerState

State of the managed peer.

(Inherited from IJavaPeerable)
JniPeerMembers

Member access and invocation support.

(Inherited from IJavaPeerable)
Offset
PeerReference

Returns a JniObjectReference of the wrapped Java object instance.

(Inherited from IJavaPeerable)
Zone

Methods

CompareTo(IChronoZonedDateTime)
CompareTo(Object)

Compares this object with the specified object for order.

(Inherited from IComparable)
Disposed()

Called when the instance has been disposed.

(Inherited from IJavaPeerable)
DisposeUnlessReferenced()

If there are no outstanding references to this instance, then calls Dispose(); otherwise, does nothing.

(Inherited from IJavaPeerable)
Equals(Object)
Finalized()

Called when the instance has been finalized.

(Inherited from IJavaPeerable)
Format(DateTimeFormatter)
From(ITemporalAccessor)
Get(ITemporalField)

Gets the value of the specified field as an int.

(Inherited from ITemporalAccessor)
GetHashCode()

A hash code for this date-time.

GetLong(ITemporalField)

Gets the value of the specified field as a long.

(Inherited from ITemporalAccessor)
IsAfter(IChronoZonedDateTime)
IsBefore(IChronoZonedDateTime)
IsEqual(IChronoZonedDateTime)
IsSupported(ITemporalField)
IsSupported(ITemporalUnit)

Checks if the specified unit is supported.

(Inherited from ITemporal)
Minus(Int64, ITemporalUnit)

Returns an object of the same type as this object with the specified period subtracted.

(Inherited from ITemporal)
Minus(ITemporalAmount)

Returns an object of the same type as this object with an amount subtracted.

(Inherited from ITemporal)
Plus(Int64, ITemporalUnit)
Plus(ITemporalAmount)

Returns an object of the same type as this object with an amount added.

(Inherited from ITemporal)
Query(ITemporalQuery)

Queries this date-time.

(Inherited from ITemporalAccessor)
Range(ITemporalField)

Gets the range of valid values for the specified field.

(Inherited from ITemporalAccessor)
SetJniIdentityHashCode(Int32)

Set the value returned by JniIdentityHashCode.

(Inherited from IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates) (Inherited from IJavaPeerable)
SetPeerReference(JniObjectReference)

Set the value returned by PeerReference.

(Inherited from IJavaPeerable)
TimeLineOrder()
ToEpochSecond()

Converts this date-time to the number of seconds from the epoch of 1970-01-01T00:00:00Z.

ToInstant()
ToLocalDate()
ToLocalDateTime()
ToLocalTime()
ToString()
UnregisterFromRuntime()

Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.

(Inherited from IJavaPeerable)
Until(ITemporal, ITemporalUnit)

Calculates the amount of time until another temporal in terms of the specified unit.

(Inherited from ITemporal)
With(ITemporalAdjuster)

Returns an adjusted object of the same type as this object with the adjustment made.

(Inherited from ITemporal)
With(ITemporalField, Int64)
WithEarlierOffsetAtOverlap()
WithLaterOffsetAtOverlap()
WithZoneSameInstant(ZoneId)
WithZoneSameLocal(ZoneId)

Explicit Interface Implementations

ITemporal.IsSupported(ITemporalUnit)
ITemporal.Minus(Int64, ITemporalUnit)
ITemporal.Minus(ITemporalAmount)
ITemporal.Plus(ITemporalAmount)
ITemporal.With(ITemporalAdjuster)
ITemporalAccessor.Get(ITemporalField)
ITemporalAccessor.GetLong(ITemporalField)
ITemporalAccessor.Query(ITemporalQuery)
ITemporalAccessor.Range(ITemporalField)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to