Period.Units Property

Definition

Gets the set of units supported by this period.

public System.Collections.Generic.IList<Java.Time.Temporal.ITemporalUnit>? Units { [Android.Runtime.Register("getUnits", "()Ljava/util/List;", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getUnits", "()Ljava/util/List;", "", ApiSince=26)>]
member this.Units : System.Collections.Generic.IList<Java.Time.Temporal.ITemporalUnit>

Property Value

a list containing the years, months and days units, not null

Implements

Attributes

Remarks

Gets the set of units supported by this period. The supported units are YEARS, MONTHS and DAYS. They are returned in the order years, months, days. This set can be used in conjunction with get(TemporalUnit) to access the entire state of the period.

Java reference for java.time.Period.getUnits.

Applies to