//[astronomy](../../../index.md)/[io.github.cosinekitty.astronomy](../index.md)/[Time](index.md)/[compareTo](compare-to.md) # compareTo open operator override fun [compareTo](compare-to.md)(other: [Time](index.md)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) Compares the chronological order of two Time values. Two instances of Time can be compared for chronological order using the usual operators like t1 < t2 or t1 == t2.