toMinutesPartCompat

fun Duration.toMinutesPartCompat(): Int

Extracts the number of minutes part in the duration. This returns the number of remaining minutes when dividing Duration.toMinutes by minutes in an hour. This is based on the standard definition of an hour as 60 minutes.

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

Return

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