days
Returns a Duration equal to this Int number of days.
Since Kotlin
1.6Returns a Duration equal to this Long number of days.
Since Kotlin
1.6Returns a Duration equal to this Double number of days.
Depending on its magnitude, the value is rounded to an integer number of nanoseconds or milliseconds.
Since Kotlin
1.6Throws
if this Double value is NaN
.
Deprecated
Warning since 1.6
Error since 1.8
Hidden since 1.9
Use 'Int.days' extension property from Duration.Companion instead.
Replace with
import kotlin.time.Duration.Companion.days
value.days
Returns a Duration representing the specified value number of days.
Since Kotlin
1.6Deprecated
Warning since 1.6
Error since 1.8
Hidden since 1.9
Use 'Long.days' extension property from Duration.Companion instead.
Replace with
import kotlin.time.Duration.Companion.days
value.days
Returns a Duration representing the specified value number of days.
Since Kotlin
1.6Deprecated
Warning since 1.6
Error since 1.8
Hidden since 1.9
Use 'Double.days' extension property from Duration.Companion instead.
Replace with
import kotlin.time.Duration.Companion.days
value.days
Returns a Duration representing the specified value number of days.
Since Kotlin
1.6Throws
if the provided Double
value is NaN
.