compareTo

actual open operator override fun compareTo(other: LocalTime): Int(source)
expect open operator override fun compareTo(other: LocalTime): Int(source)

Compares this time value with the other time value. Returns zero if this value is equal to the other, a negative number if this value occurs earlier in the course of a typical day than the other, and a positive number if this value occurs later in the course of a typical day than the other.

Note that, on days when there is a time overlap (for example, due to the daylight saving time transitions in autumn), a "lesser" wall-clock reading can, in fact, happen later than the "greater" one.

actual open operator override fun compareTo(other: LocalTime): Int(source)
actual open operator override fun compareTo(other: LocalTime): Int(source)