kotlin-stdlib / kotlin.time / hours hours Common JVM JS Native 1.3 @ExperimentalTime @DeprecatedSinceKotlin("1.5", "1.8") val Int.hours: Duration(source) Deprecated: Use 'Int.hours' extension property from Duration.Companion instead. Returns a Duration equal to this Int number of hours. Common JVM JS Native 1.3 @ExperimentalTime @DeprecatedSinceKotlin("1.5", "1.8") val Long.hours: Duration(source) Deprecated: Use 'Long.hours' extension property from Duration.Companion instead. Returns a Duration equal to this Long number of hours. Common JVM JS Native 1.3 @ExperimentalTime @DeprecatedSinceKotlin("1.5", "1.8") val Double.hours: Duration(source) Deprecated: Use 'Double.hours' extension property from Duration.Companion instead. Returns a Duration equal to this Double number of hours. Exceptions IllegalArgumentException - if this Double value is NaN.