Clock.Instant Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.