Period.OfWeeks(Int32) Method
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.
Obtains a Period representing a number of weeks.
[Android.Runtime.Register("ofWeeks", "(I)Ljava/time/Period;", "", ApiSince=26)]
public static Java.Time.Period? OfWeeks(int weeks);
[<Android.Runtime.Register("ofWeeks", "(I)Ljava/time/Period;", "", ApiSince=26)>]
static member OfWeeks : int -> Java.Time.Period
Parameters
- weeks
- Int32
the number of weeks, positive or negative
Returns
the period, with the input weeks converted to days, not null
- Attributes
Remarks
Obtains a Period representing a number of weeks. The resulting period will be day-based, with the amount of days equal to the number of weeks multiplied by 7. The years and months units will be zero.
Java reference for java.time.Period.ofWeeks.