nanosecond
Returns the nanosecond-of-second (0..999_999_999) 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 sub-second part of a LocalTime
check(LocalTime(8, 30).nanosecond == 0)
check(LocalTime(8, 30, 15).nanosecond == 0)
check(LocalTime(8, 30, 15, 123_456_789).nanosecond == 123_456_789)
//sampleEnd
}