Language

Calendar.Builder.SetTimeZone(TimeZone) Method

Definition

Sets the time zone parameter to the given zone.

[Android.Runtime.Register("setTimeZone", "(Ljava/util/TimeZone;)Ljava/util/Calendar$Builder;", "GetSetTimeZone_Ljava_util_TimeZone_Handler", ApiSince=26)]
public virtual Java.Util.Calendar.Builder SetTimeZone(Java.Util.TimeZone zone);
[<Android.Runtime.Register("setTimeZone", "(Ljava/util/TimeZone;)Ljava/util/Calendar$Builder;", "GetSetTimeZone_Ljava_util_TimeZone_Handler", ApiSince=26)>]
abstract member SetTimeZone : Java.Util.TimeZone -> Java.Util.Calendar.Builder
override this.SetTimeZone : Java.Util.TimeZone -> Java.Util.Calendar.Builder

Parameters

zone
TimeZone

the TimeZone

Returns

this Calendar.Builder

Attributes

Remarks

Sets the time zone parameter to the given zone. If no time zone parameter is given to this Calendar.Builder, the default TimeZone will be used in the build method.

Java reference for java.util.Calendar.Builder.setTimeZone.

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