core / io.islandtime / Time / fromSecondsSinceStartOfDay

fromSecondsSinceStartOfDay

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun fromSecondsSinceStartOfDay(seconds: IntSeconds, nanosecondAdjustment: IntNanoseconds = 0.nanoseconds): Time

Creates the Time at a number of seconds since the start of the day and optionally, a number of additional nanoseconds.

Parameters

seconds - the number of seconds since the start of the day

nanosecondAdjustment - the number of additional nanoseconds, from 0 - 999,999,999

Exceptions

DateTimeException - if the time is invalid

Return
a new Time