inSeconds

Deprecated

Use inWholeSeconds property instead or convert toDouble(SECONDS) if a double value is required.

Replace with

toDouble(DurationUnit.SECONDS)

The value of this duration expressed as a Double number of seconds.

Since Kotlin

1.6