Language

IChronoZonedDateTime.ToInstant Method

Definition

Converts this date-time to an Instant.

[Android.Runtime.Register("toInstant", "()Ljava/time/Instant;", "GetToInstantHandler:Java.Time.Chrono.IChronoZonedDateTime, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public virtual Java.Time.Instant? ToInstant();
[<Android.Runtime.Register("toInstant", "()Ljava/time/Instant;", "GetToInstantHandler:Java.Time.Chrono.IChronoZonedDateTime, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member ToInstant : unit -> Java.Time.Instant
override this.ToInstant : unit -> Java.Time.Instant

Returns

an Instant representing the same instant, not null

Attributes

Remarks

Converts this date-time to an Instant. This returns an Instant representing the same point on the time-line as this date-time. The calculation combines the local date-time and offset.

Java reference for java.time.chrono.ChronoZonedDateTime.toInstant.

Applies to