Compartir a través de


WeekFields.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 retaining the week-of-week-based-year and day-of-week, unless the week number it too large for the target year. In that case, the week is set to the last week of the year with the same day-of-week.

This unit is an immutable and thread-safe singleton.

Java documentation for java.time.temporal.WeekFields.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