ITemporalField.RangeUnit Property

Definition

Gets the unit that defines the range of the field.

public Java.Time.Temporal.ITemporalUnit? RangeUnit { [Android.Runtime.Register("getRangeUnit", "()Ljava/time/temporal/TemporalUnit;", "GetGetRangeUnitHandler:Java.Time.Temporal.ITemporalFieldInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getRangeUnit", "()Ljava/time/temporal/TemporalUnit;", "GetGetRangeUnitHandler:Java.Time.Temporal.ITemporalFieldInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
member this.RangeUnit : Java.Time.Temporal.ITemporalUnit

Property Value

the unit defining the range of the field, not null

Attributes

Remarks

Gets the unit that defines the range of the field.

The range of the field is the period that the field varies within. For example, in the field MonthOfYear, the range is Years. See also getBaseUnit().

The range is never null. For example, the Year field is shorthand for YearOfForever. It therefore has a unit of Years and a range of Forever.

Java documentation for java.time.temporal.TemporalField.getRangeUnit().

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.

Applies to