kotlin-stdlib / kotlin.time / seconds seconds Common JVM JS Native 1.3 @ExperimentalTime @DeprecatedSinceKotlin ( "1.5" , "1.8" , "1.9" ) val Int . seconds : Duration (source) Deprecated: Use 'Int.seconds' extension property from Duration.Companion instead. Returns a Duration equal to this Int number of seconds. Common JVM JS Native 1.3 @ExperimentalTime @DeprecatedSinceKotlin ( "1.5" , "1.8" , "1.9" ) val Long . seconds : Duration (source) Deprecated: Use 'Long.seconds' extension property from Duration.Companion instead. Returns a Duration equal to this Long number of seconds. Common JVM JS Native 1.3 @ExperimentalTime @DeprecatedSinceKotlin ( "1.5" , "1.8" , "1.9" ) val Double . seconds : Duration (source) Deprecated: Use 'Double.seconds' extension property from Duration.Companion instead. Returns a Duration equal to this Double number of seconds. Exceptions IllegalArgumentException - if this Double value is NaN .