Language

Calendar.Builder.SetCalendarType(String) Method

Definition

Sets the calendar type parameter to the given type.

[Android.Runtime.Register("setCalendarType", "(Ljava/lang/String;)Ljava/util/Calendar$Builder;", "GetSetCalendarType_Ljava_lang_String_Handler", ApiSince=26)]
public virtual Java.Util.Calendar.Builder SetCalendarType(string type);
[<Android.Runtime.Register("setCalendarType", "(Ljava/lang/String;)Ljava/util/Calendar$Builder;", "GetSetCalendarType_Ljava_lang_String_Handler", ApiSince=26)>]
abstract member SetCalendarType : string -> Java.Util.Calendar.Builder
override this.SetCalendarType : string -> Java.Util.Calendar.Builder

Parameters

type
String

the calendar type

Returns

this Calendar.Builder

Attributes

Remarks

Sets the calendar type parameter to the given type. The calendar type given by this method has precedence over any explicit or implicit calendar type given by the locale. In addition to the types in AvailableCalendarTypes, "gregorian" is accepted as an alias for "gregory". The "iso8601" type selects a proleptic Gregorian calendar with ISO week rules.

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

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