IsoFields.WeekBasedYears Property

Definition

The unit that represents week-based-years for the purpose of addition and subtraction.

[Android.Runtime.Register("WEEK_BASED_YEARS", ApiSince=26)]
public static Java.Time.Temporal.ITemporalUnit? WeekBasedYears { get; }
[<Android.Runtime.Register("WEEK_BASED_YEARS", ApiSince=26)>]
static member WeekBasedYears : Java.Time.Temporal.ITemporalUnit

Property Value

Attributes

Remarks

The unit that represents week-based-years for the purpose of addition and subtraction.

This allows a number of week-based-years to be added to, or subtracted from, a date. The unit is equal to either 52 or 53 weeks. The estimated duration of a week-based-year is the same as that of a standard ISO year at 365.2425 Days.

The rules for addition add the number of week-based-years to the existing value for the week-based-year field. If the resulting week-based-year only has 52 weeks, then the date will be in week 1 of the following week-based-year.

This unit is an immutable and thread-safe singleton.

Java documentation for java.time.temporal.IsoFields.WEEK_BASED_YEARS.

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