duration Of
fun durationOf(seconds: IntSeconds, nanoseconds: IntNanoseconds): Duration
Content copied to clipboard
fun durationOf(seconds: LongSeconds, nanoseconds: IntNanoseconds): Duration
Content copied to clipboard
fun durationOf(seconds: IntSeconds, nanoseconds: LongNanoseconds): Duration
Content copied to clipboard
fun durationOf(seconds: LongSeconds, nanoseconds: LongNanoseconds): Duration
Content copied to clipboard
Creates a Duration.
Parameters
seconds
the number of seconds in the duration
nanoseconds
the number of additional nanoseconds to be applied on top of seconds
Creates a Duration of 24-hour days.
Creates a Duration of hours.
Creates a Duration of minutes.
Creates a Duration of seconds.
Creates a Duration of milliseconds.
Creates a Duration of microseconds.
Creates a Duration of nanoseconds.