DateTimeFormatter.Zone Property

Definition

Gets the overriding zone to be used during formatting.

public Java.Time.ZoneId? Zone { [Android.Runtime.Register("getZone", "()Ljava/time/ZoneId;", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getZone", "()Ljava/time/ZoneId;", "", ApiSince=26)>]
member this.Zone : Java.Time.ZoneId

Property Value

the override zone of this formatter, null if no override

Attributes

Remarks

Gets the overriding zone to be used during formatting.

This returns the override zone, used to convert instants. By default, a formatter has no override zone, returning null. See #withZone(ZoneId) for more details on overriding.

Java documentation for java.time.format.DateTimeFormatter.getZone().

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