inWholeSeconds

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

An infinite duration value is converted either to Long.MAX_VALUE or Long.MIN_VALUE depending on its sign.

Since Kotlin

1.6