Sdílet prostřednictvím


IChronoLocalDateTime Interface

Definition

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

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

Remarks

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

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

A ChronoLocalDateTime is the abstract representation of a local 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 LocalDateTime 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.ChronoLocalDateTime.

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

Gets the chronology of this date-time.

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)
PeerReference

Returns a JniObjectReference of the wrapped Java object instance.

(Inherited from IJavaPeerable)

Methods

AdjustInto(ITemporal)

Adjusts the specified temporal object.

(Inherited from ITemporalAdjuster)
AtZone(ZoneId)

Combines this time with a time-zone to create a ChronoZonedDateTime.

CompareTo(IChronoLocalDateTime)

Compares this date-time to another date-time, including the chronology.

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)

Checks if this date-time is equal to another date-time, including the chronology.

Finalized()

Called when the instance has been finalized.

(Inherited from IJavaPeerable)
Format(DateTimeFormatter)

Formats this date-time using the specified formatter.

From(ITemporalAccessor)

Obtains an instance of ChronoLocalDateTime from a temporal object.

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(IChronoLocalDateTime)

Checks if this date-time is after the specified date-time ignoring the chronology.

IsBefore(IChronoLocalDateTime)

Checks if this date-time is before the specified date-time ignoring the chronology.

IsEqual(IChronoLocalDateTime)

Checks if this date-time is equal to the specified date-time ignoring the chronology.

IsSupported(ITemporalField)

Checks if the specified field is supported.

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)

To be added

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()

Gets a comparator that compares ChronoLocalDateTime in time-line order ignoring the chronology.

ToEpochSecond(ZoneOffset)

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

ToInstant(ZoneOffset)

Converts this date-time to an Instant.

ToLocalDate()

Gets the local date part of this date-time.

ToLocalTime()

Gets the local time part of this date-time.

ToString()

Outputs this date-time as a String.

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)

To be added

Explicit Interface Implementations

ITemporal.IsSupported(ITemporalUnit)

Checks if the specified unit is supported.

ITemporal.Minus(Int64, ITemporalUnit)

To be added

ITemporal.Minus(ITemporalAmount)

To be added

ITemporal.Plus(ITemporalAmount)

To be added

ITemporal.With(ITemporalAdjuster)

To be added

ITemporalAccessor.Query(ITemporalQuery)

Queries this date-time using the specified query.

ITemporalAdjuster.AdjustInto(ITemporal)

Adjusts the specified temporal object to have the same date and time as this object.

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to