Companion

object Companion

Functions

Link copied to clipboard
fun milliseconds(value: Double): Duration
fun milliseconds(value: Int): Duration
fun milliseconds(value: Long): Duration

Creates a Duration instance from the given value in milliseconds.

Link copied to clipboard
fun seconds(value: Double): Duration
fun seconds(value: Int): Duration
fun seconds(value: Long): Duration

Creates a Duration instance from the given value in seconds.