Share via


TimeZone.ToZoneId Method

Definition

Converts this TimeZone object to a ZoneId.

[Android.Runtime.Register("toZoneId", "()Ljava/time/ZoneId;", "GetToZoneIdHandler", ApiSince=26)]
public virtual Java.Time.ZoneId? ToZoneId ();
[<Android.Runtime.Register("toZoneId", "()Ljava/time/ZoneId;", "GetToZoneIdHandler", ApiSince=26)>]
abstract member ToZoneId : unit -> Java.Time.ZoneId
override this.ToZoneId : unit -> Java.Time.ZoneId

Returns

a ZoneId representing the same time zone as this TimeZone

Attributes

Remarks

Converts this TimeZone object to a ZoneId.

Added in 1.8.

Java documentation for java.util.TimeZone.toZoneId().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to