Kotlin Duration inWholeHours Function
The inWholeHours function in Kotlin is used to convert a Duration object to the number of whole hours it represents. It is part of the Kotlin standard library’s kotlin.time package and provides a way to extract the number of complete hours from a duration.