days

Common
JVM
JS
Native
1.3
@ExperimentalTime @DeprecatedSinceKotlin("1.5") val Int.days: Duration
(source)
Deprecated: Use 'Int.days' extension property from Duration.Companion instead.

Returns a Duration equal to this Int number of days.

Common
JVM
JS
Native
1.3
@ExperimentalTime @DeprecatedSinceKotlin("1.5") val Long.days: Duration
(source)
Deprecated: Use 'Long.days' extension property from Duration.Companion instead.

Returns a Duration equal to this Long number of days.

Common
JVM
JS
Native
1.3
@ExperimentalTime @DeprecatedSinceKotlin("1.5") val Double.days: Duration
(source)
Deprecated: Use 'Double.days' extension property from Duration.Companion instead.

Returns a Duration equal to this Double number of days.

Exceptions

IllegalArgumentException - if this Double value is NaN.