Clock.Instant Method

Definition

Gets the current instant of the clock.

[Android.Runtime.Register("instant", "()Ljava/time/Instant;", "GetInstantHandler", ApiSince=26)]
public abstract Java.Time.Instant? Instant();
[<Android.Runtime.Register("instant", "()Ljava/time/Instant;", "GetInstantHandler", ApiSince=26)>]
abstract member Instant : unit -> Java.Time.Instant

Returns

the current instant from this clock, not null

Implements

Attributes

Remarks

Gets the current instant of the clock. This returns an instant representing the current instant as defined by the clock.

Java reference for java.time.Clock.instant.

Applies to