durationOf

Creates a Duration.

Parameters

nanoseconds

the number of additional nanoseconds to be applied on top of seconds

seconds

the number of seconds in the duration

fun durationOf(seconds: IntSeconds, nanoseconds: IntNanoseconds): Duration

Creates a Duration.

Parameters

nanoseconds

the number of additional nanoseconds to be applied on top of seconds

seconds

the number of seconds in the duration

fun durationOf(seconds: LongSeconds, nanoseconds: IntNanoseconds): Duration

Creates a Duration.

Parameters

nanoseconds

the number of additional nanoseconds to be applied on top of seconds

seconds

the number of seconds in the duration

fun durationOf(seconds: IntSeconds, nanoseconds: LongNanoseconds): Duration

Creates a Duration.

Parameters

nanoseconds

the number of additional nanoseconds to be applied on top of seconds

seconds

the number of seconds in the duration

fun durationOf(seconds: LongSeconds, nanoseconds: LongNanoseconds): Duration

Creates a Duration of 24-hour days.

fun durationOf(days: IntDays): Duration
fun durationOf(days: LongDays): Duration

Creates a Duration of hours.

fun durationOf(hours: IntHours): Duration
fun durationOf(hours: LongHours): Duration

Creates a Duration of minutes.

fun durationOf(minutes: IntMinutes): Duration
fun durationOf(minutes: LongMinutes): Duration

Creates a Duration of seconds.

fun durationOf(seconds: IntSeconds): Duration
fun durationOf(seconds: LongSeconds): Duration

Creates a Duration of milliseconds.

fun durationOf(milliseconds: IntMilliseconds): Duration
fun durationOf(milliseconds: LongMilliseconds): Duration

Creates a Duration of microseconds.

fun durationOf(microseconds: IntMicroseconds): Duration
fun durationOf(microseconds: LongMicroseconds): Duration

Creates a Duration of nanoseconds.

fun durationOf(nanoseconds: IntNanoseconds): Duration
fun durationOf(nanoseconds: LongNanoseconds): Duration