OffsetTime.OfInstant(Instant, ZoneId) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient une instance de OffsetTime à partir d’un ID instantané et de zone.
[Android.Runtime.Register("ofInstant", "(Ljava/time/Instant;Ljava/time/ZoneId;)Ljava/time/OffsetTime;", "", ApiSince=26)]
public static Java.Time.OffsetTime? OfInstant(Java.Time.Instant? instant, Java.Time.ZoneId? zone);
[<Android.Runtime.Register("ofInstant", "(Ljava/time/Instant;Ljava/time/ZoneId;)Ljava/time/OffsetTime;", "", ApiSince=26)>]
static member OfInstant : Java.Time.Instant * Java.Time.ZoneId -> Java.Time.OffsetTime
Paramètres
- instant
- Instant
instant à partir duquel créer l’heure, et non null
- zone
- ZoneId
le fuseau horaire, qui peut être un décalage, et non null
Retours
l’heure de décalage, et non null
- Attributs
Remarques
À ajouter.
Java référence pour java.time.OffsetTime.ofInstant.