Files
astronomy/source/kotlin/doc/-time/compare-to.md
2022-11-14 13:40:10 -05:00

465 B

//astronomy/io.github.cosinekitty.astronomy/Time/compareTo

compareTo

open operator override fun compareTo(other: Time): Int

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.