compareTo
Compares this LocalIsoWeekDate to another one. Returns zero if the two LocalIsoWeekDates represent the same date, a negative number if this date is earlier than the other, and a positive number if this date is later than the other.
Samples
import kotlinx.datetime.*
import kotlin.test.*
fun main() {
//sampleStart
// Comparing LocalIsoWeekDate values
check(LocalIsoWeekDate(2004, 53, 1) < LocalIsoWeekDate(2004, 53, 2))
check(LocalIsoWeekDate(2004, 52, 7) < LocalIsoWeekDate(2004, 53, 1))
check(LocalIsoWeekDate(2004, 52, 7) < LocalIsoWeekDate(2005, 1, 1))
//sampleEnd
}Content copied to clipboard