Clock.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 copie de cette horloge avec un autre fuseau horaire.
[Android.Runtime.Register("withZone", "(Ljava/time/ZoneId;)Ljava/time/Clock;", "GetWithZone_Ljava_time_ZoneId_Handler", ApiSince=26)]
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", ApiSince=26)>]
abstract member WithZone : Java.Time.ZoneId -> Java.Time.Clock
override this.WithZone : Java.Time.ZoneId -> Java.Time.Clock
Paramètres
- zone
- ZoneId
fuseau horaire à modifier, et non null
Retours
horloge basée sur cette horloge avec le fuseau horaire spécifié, et non null
Implémente
- Attributs
Remarques
Retourne une copie de cette horloge avec un autre fuseau horaire. Une horloge obtient généralement l’instant actuel, puis la convertit en date ou heure à l’aide d’un fuseau horaire. Cette méthode retourne une horloge avec des propriétés similaires, mais à l’aide d’un fuseau horaire différent.
Java référence pour java.time.Clock.withZone.