//core/io.islandtime/Time/Companion/fromSecondOfDay
fromSecondOfDay¶
common
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.
Return¶
a new Time
Parameters¶
common
secondOfDay | the second of the day |
nanosecond | the nanosecond of the second, from 0 to 999,999,999 |
Throws¶
DateTimeException | if the time is invalid |