IInstantSource.WithZone(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.
Retourne une horloge avec le fuseau horaire spécifié.
[Android.Runtime.Register("withZone", "(Ljava/time/ZoneId;)Ljava/time/Clock;", "GetWithZone_Ljava_time_ZoneId_Handler:Java.Time.IInstantSource, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public virtual Java.Time.Clock? WithZone(Java.Time.ZoneId? zone);
[<Android.Runtime.Register("withZone", "(Ljava/time/ZoneId;)Ljava/time/Clock;", "GetWithZone_Ljava_time_ZoneId_Handler:Java.Time.IInstantSource, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member WithZone : Java.Time.ZoneId -> Java.Time.Clock
override this.WithZone : Java.Time.ZoneId -> Java.Time.Clock
Paramètres
- zone
- ZoneId
fuseau horaire à utiliser, et non null
Retours
horloge basée sur cette source avec le fuseau horaire spécifié, et non null
- Attributs
Remarques
Retourne une horloge avec le fuseau horaire spécifié.
Cela retourne une Clockextension de cette interface qui combine cette source et le fuseau horaire spécifié.
L’implémentation retournée est immuable, thread-safe et Serializable fournit cette source.
Java documentation pour java.time.InstantSource.withZone(java.time.ZoneId).
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.