Udostępnij za pośrednictwem


IInstantSource.Instant Method

Definition

Gets the current instant of the source.

[Android.Runtime.Register("instant", "()Ljava/time/Instant;", "GetInstantHandler:Java.Time.IInstantSourceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public Java.Time.Instant? Instant ();
[<Android.Runtime.Register("instant", "()Ljava/time/Instant;", "GetInstantHandler:Java.Time.IInstantSourceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member Instant : unit -> Java.Time.Instant

Returns

the current instant from this source, not null

Attributes

Remarks

Gets the current instant of the source.

This returns an instant representing the current instant as defined by the source.

Java documentation for java.time.InstantSource.instant().

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.

Applies to