Language

ChronoField.RangeUnit Property

Definition

Gets the range that the field is bound by.

public Java.Time.Temporal.ITemporalUnit? RangeUnit { [Android.Runtime.Register("getRangeUnit", "()Ljava/time/temporal/TemporalUnit;", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getRangeUnit", "()Ljava/time/temporal/TemporalUnit;", "", ApiSince=26)>]
member this.RangeUnit : Java.Time.Temporal.ITemporalUnit

Property Value

the unit defining the range of the field, not null

Implements

Attributes

Remarks

Gets the range that the field is bound by. 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 TemporalField.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 reference for java.time.temporal.ChronoField.getRangeUnit.

Applies to