Duration.Units Property

Definition

Gets the set of units supported by this duration.

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 seconds and nanos units, not null

Implements

Attributes

Remarks

Gets the set of units supported by this duration. The supported units are SECONDS, and NANOS. They are returned in the order seconds, nanos. This set can be used in conjunction with get(TemporalUnit) to access the entire state of the duration.

Java reference for java.time.Duration.getUnits.

Applies to