roundToNearestHour

fun Duration.roundToNearestHour(): Duration

Returns a duration rounded the nearest hour.