ZoneId.SystemDefault Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.