Language

ZoneId.SystemDefault Method

Definition

Gets the system default time-zone.

[Android.Runtime.Register("systemDefault", "()Ljava/time/ZoneId;", "", ApiSince=26)]
public static Java.Time.ZoneId? SystemDefault();
[<Android.Runtime.Register("systemDefault", "()Ljava/time/ZoneId;", "", ApiSince=26)>]
static member SystemDefault : unit -> Java.Time.ZoneId

Returns

the zone ID, not null

Attributes

Remarks

Gets the system default time-zone. This queries TimeZone.getDefault() to find the default time-zone and converts it to a ZoneId. If the system default time-zone is changed, then the result of this method will also change.

Java reference for java.time.ZoneId.systemDefault.

Applies to