Time.WeekNumber Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Computes the week number according to ISO 8601.
public virtual int WeekNumber { [Android.Runtime.Register("getWeekNumber", "()I", "GetGetWeekNumberHandler")] get; }
[<get: Android.Runtime.Register("getWeekNumber", "()I", "GetGetWeekNumberHandler")>]
member this.WeekNumber : int
Property Value
the ISO week number.
- Attributes
Remarks
Computes the week number according to ISO 8601. The current Time object must already be normalized because this method uses the yearDay and weekDay fields.
In IS0 8601, weeks start on Monday. The first week of the year (week 1) is defined by ISO 8601 as the first week with four or more of its days in the starting year. Or equivalently, the week containing January 4. Or equivalently, the week with the year's first Thursday in it.
The week number can be calculated by counting Thursdays. Week N contains the Nth Thursday of the year.
Java documentation for android.text.format.Time.getWeekNumber()
.
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.