Partager via


DateFormat.TimeZone Property

Definition

Returns the time zone. -or- Sets the time zone for the calendar of this DateFormat object.

public virtual Android.Icu.Util.TimeZone? TimeZone { [Android.Runtime.Register("getTimeZone", "()Landroid/icu/util/TimeZone;", "GetGetTimeZoneHandler", ApiSince=24)] get; [Android.Runtime.Register("setTimeZone", "(Landroid/icu/util/TimeZone;)V", "GetSetTimeZone_Landroid_icu_util_TimeZone_Handler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getTimeZone", "()Landroid/icu/util/TimeZone;", "GetGetTimeZoneHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setTimeZone", "(Landroid/icu/util/TimeZone;)V", "GetSetTimeZone_Landroid_icu_util_TimeZone_Handler", ApiSince=24)>]
member this.TimeZone : Android.Icu.Util.TimeZone with get, set

Property Value

the time zone associated with the calendar of DateFormat.

Attributes

Remarks

Property getter documentation:

Returns the time zone.

Java documentation for android.icu.text.DateFormat.getTimeZone().

Property setter documentation:

Sets the time zone for the calendar of this DateFormat object.

Java documentation for android.icu.text.DateFormat.setTimeZone(android.icu.util.TimeZone).

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