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