ITemporalUnit.Duration Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the duration of this unit, which may be an estimate.
public Java.Time.Duration? Duration { [Android.Runtime.Register("getDuration", "()Ljava/time/Duration;", "GetGetDurationHandler:Java.Time.Temporal.ITemporalUnitInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getDuration", "()Ljava/time/Duration;", "GetGetDurationHandler:Java.Time.Temporal.ITemporalUnitInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
member this.Duration : Java.Time.Duration
Property Value
the duration of this unit, which may be an estimate, not null
- Attributes
Remarks
Gets the duration of this unit, which may be an estimate. All units return a duration measured in standard nanoseconds from this method. The duration will be positive and non-zero. For example, an hour has a duration of 60 * 60 * 1,000,000,000ns. Some units may return an accurate duration while others return an estimate. For example, days have an estimated duration due to the possibility of daylight saving time changes. To determine if the duration is an estimate, use isDurationEstimated().
Java reference for java.time.temporal.TemporalUnit.getDuration.