isSameLocalDay

fun isSameLocalDay(firstMillis: Long, secondMillis: Long, timeZone: TimeZone = systemTimeZone): Boolean(source)

True when both timestamps fall on the same local calendar day.

Compared on calendar date rather than an elapsed-millis window, so a separator lands on midnight rather than 24 hours after the previous message.