compareTo

Compares this time mark with the other time mark for order.

  • Returns zero if this time mark represents the same moment of time as the other time mark.

  • Returns a negative number if this time mark is earlier than the other time mark.

  • Returns a positive number if this time mark is later than the other time mark.

Since Kotlin

1.7