Language

IChronoPeriod.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;", "GetGetUnitsHandler:Java.Time.Chrono.IChronoPeriodInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getUnits", "()Ljava/util/List;", "GetGetUnitsHandler:Java.Time.Chrono.IChronoPeriodInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
member this.Units : System.Collections.Generic.IList<Java.Time.Temporal.ITemporalUnit>

Property Value

a list containing the supported units, not null

Implements

Attributes

Remarks

Gets the set of units supported by this period. The supported units are chronology specific. They will typically be YEARS, MONTHS and DAYS. They are returned in order from largest to smallest. This set can be used in conjunction with get(TemporalUnit) to access the entire state of the period.

Java reference for java.time.chrono.ChronoPeriod.getUnits.

Applies to