equals

actual open operator override fun equals(other: Any?): Boolean(source)
expect open operator override fun equals(other: Any?): Boolean(source)

Returns true if other is a UtcOffset with the same totalSeconds.

Samples

import kotlinx.datetime.*
import kotlinx.datetime.format.*
import kotlin.test.*

fun main() { 
   //sampleStart 
   // Comparing UtcOffset values for equality
val offset1 = UtcOffset.parse("+01:30")
val offset2 = UtcOffset(minutes = 90)
check(offset1 == offset2)
val offset3 = UtcOffset(hours = 1)
check(offset1 != offset3) 
   //sampleEnd
}
actual open operator override fun equals(other: Any?): Boolean(source)
actual open operator override fun equals(other: Any?): Boolean(source)