Langage

OffsetDateTime.ToInstant Méthode

Définition

Convertit cette date et heure en un 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

Retours

un instant représentant le même instant, et non null

Attributs

Remarques

Convertit cette date et heure en un instant. Cette opération renvoie un instant représentant le même point sur la ligne de temps que cette date-heure.

Java référence pour java.time.OffsetDateTime.toInstant.

S’applique à