second

actual val second: Int(source)
expect val second: Int(source)

Returns the second-of-minute (0..59) time component of this time value.

Samples

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

fun main() { 
   //sampleStart 
   // Getting the number of whole seconds that don't form a whole minute
check(LocalTime(8, 30).second == 0)
check(LocalTime(8, 30, 15, 123_456_789).second == 15) 
   //sampleEnd
}
actual val second: Int(source)
actual val second: Int(source)