compare To
Начиная с Kotlin: 1.6
open operator override fun compareTo(other: Duration): Int
Сравнивает этот объект с указанным объектом. Возвращает ноль, если этот объект равен указанному объекту other, отрицательное число, если он меньше other, или положительное число, если он больше other.
© 2010–2026 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.time/-duration/compare-to.html