Duration.OfNanos(Int64) Method
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.
Obtains a Duration representing a number of nanoseconds.
[Android.Runtime.Register("ofNanos", "(J)Ljava/time/Duration;", "", ApiSince=26)]
public static Java.Time.Duration? OfNanos(long nanos);
[<Android.Runtime.Register("ofNanos", "(J)Ljava/time/Duration;", "", ApiSince=26)>]
static member OfNanos : int64 -> Java.Time.Duration
Parameters
- nanos
- Int64
the number of nanoseconds, positive or negative
Returns
a Duration, not null
- Attributes
Remarks
Obtains a Duration representing a number of nanoseconds. The seconds and nanoseconds are extracted from the specified nanoseconds.
Java reference for java.time.Duration.ofNanos.