Language

Calendar.ToInstant Method

Definition

Converts this object to an Instant.

[Android.Runtime.Register("toInstant", "()Ljava/time/Instant;", "", ApiSince=26)]
public Java.Time.Instant ToInstant();
[<Android.Runtime.Register("toInstant", "()Ljava/time/Instant;", "", ApiSince=26)>]
member this.ToInstant : unit -> Java.Time.Instant

Returns

the instant representing the same point on the time-line

Attributes

Remarks

Converts this object to an Instant. The conversion creates an Instant that represents the same point on the time-line as this Calendar.

Java reference for java.util.Calendar.toInstant.

Applies to