kotlin-stdlib / kotlin.time / Duration / days days Common JVM JS Native 1.0 inline val Int.days: <ERROR CLASS>(source) Returns a Duration equal to this Int number of days. Common JVM JS Native 1.0 inline val Long.days: <ERROR CLASS>(source) Returns a Duration equal to this Long number of days. Common JVM JS Native 1.0 inline val Double.days: <ERROR CLASS>(source) Returns 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. Exceptions IllegalArgumentException - if this Double value is NaN. Common JVM JS Native 1.5 @ExperimentalTime @DeprecatedSinceKotlin("1.6", "1.8") fun days( value: Int): Duration(source) Deprecated: Use 'Int.days' extension property from Duration.Companion instead. @ExperimentalTime @DeprecatedSinceKotlin("1.6", "1.8") fun days( value: Long): Duration(source) Deprecated: Use 'Long.days' extension property from Duration.Companion instead. Returns a Duration representing the specified value number of days. Common JVM JS Native 1.5 @ExperimentalTime @DeprecatedSinceKotlin("1.6", "1.8") fun days( value: Double): Duration(source) Deprecated: Use 'Double.days' extension property from Duration.Companion instead. Returns a Duration representing the specified value number of days. Exceptions IllegalArgumentException - if the provided Double value is NaN.