offsetInHours

@RequiresApi(value = 26)
abstract fun offsetInHours(instant: Instant, timeZone: ZoneId): Double
abstract fun offsetInHours(date: Date, timeZone: TimeZone): Double

Returns the timezone offset in hours, as a Double. Where the integral part of the returned Double is the whole number of hours, and the fractional part is the minutes.

e.g. 1 => +01:00 5.75 => +05:45 -4.5 => -04:30