public static ZoneOffset ofHours (int hours)

Obtains an instance of ZoneOffset using an offset in hours.

Parameters:
hours    the time-zone offset in hours, from -18 to +18

Returns:  the zone-offset, not null

Exceptions:
DateTimeException    if the offset is not in the required range