toSecondsPartCompat

fun Duration.toSecondsPartCompat(): Int

Extracts the number of seconds part in the duration. This returns the remaining seconds when dividing Duration.getSeconds by seconds in a minute. This is based on the standard definition of a minute as 60 seconds.

Same as Duration.toSecondsPart. This wrapper also works on devices running on Android with a lower version than Android 31.

Return

the number of seconds parts in the duration, may be negative.