Language

ChronoField.BaseUnit Property

Definition

Gets the unit that the field is measured in.

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

Property Value

the unit defining the base unit of the field, not null

Implements

Attributes

Remarks

Gets the unit that the field is measured in. The unit of the field is the period that varies within the range. For example, in the field 'MonthOfYear', the unit is 'Months'. See also TemporalField.getRangeUnit().

Java reference for java.time.temporal.ChronoField.getBaseUnit.

Applies to