core / io.islandtime / Time / fromSecondOfDay

fromSecondOfDay

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun fromSecondOfDay(secondOfDay: Int, nanosecond: Int = 0): Time

Creates a Time from the second of the day and optionally, the number of nanoseconds within that second.

Parameters

secondOfDay - the second of the day

nanosecond - the nanosecond of the second, from 0 - 999,999,999

Exceptions

DateTimeException - if the time is invalid

Return
a new Time