Duration.ofMillis

Obtains a {@code Duration} representing a number of milliseconds. !(p) The seconds and nanoseconds are extracted from the specified milliseconds.

@param millis the number of milliseconds, positive or negative @return a {@code Duration}, not null

class Duration
static
ofMillis
(
long millis
)

Meta