core-ktx / androidx.time / kotlin.Long / seconds

seconds

inline fun Long.seconds(): Duration

Return a Duration representing this value in seconds.

See Also

Duration.ofSeconds