Language

Calendar.Builder.SetWeekDefinition(Int32, Int32) Method

Definition

Sets the week definition parameters to the values given by firstDayOfWeek and minimalDaysInFirstWeek that are used to determine the first week of a year.

[Android.Runtime.Register("setWeekDefinition", "(II)Ljava/util/Calendar$Builder;", "GetSetWeekDefinition_IIHandler", ApiSince=26)]
public virtual Java.Util.Calendar.Builder SetWeekDefinition(int firstDayOfWeek, int minimalDaysInFirstWeek);
[<Android.Runtime.Register("setWeekDefinition", "(II)Ljava/util/Calendar$Builder;", "GetSetWeekDefinition_IIHandler", ApiSince=26)>]
abstract member SetWeekDefinition : int * int -> Java.Util.Calendar.Builder
override this.SetWeekDefinition : int * int -> Java.Util.Calendar.Builder

Parameters

firstDayOfWeek
Int32

The first day of the week, from Sunday through Saturday.

minimalDaysInFirstWeek
Int32

the minimal number of days in the first week (1..7)

Returns

this Calendar.Builder

Attributes

Remarks

Sets the week definition parameters to the values given by firstDayOfWeek and minimalDaysInFirstWeek that are used to determine the first week of a year. For the "gregory" calendar type, these parameters take precedence over the locale's defaults. For "iso8601", the build method replaces them with Monday and four days in the first week.

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

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