days

fun days(value: Int): Duration
fun days(value: Long): Duration

Returns a Duration representing the specified value number of days.

Since Kotlin

1.5

fun days(value: Double): Duration

Returns a Duration representing the specified value number of days.

Since Kotlin

1.5

Throws

if the provided Doublevalue is NaN.