ZoneOffset.ofHoursMinutes

Obtains an instance of {@code ZoneOffset} using an offset _in hours and minutes. !(p) The sign of the hours and minutes components must match. Thus, if the hours is negative, the minutes must be negative or zero. If the hours is zero, the minutes may be positive, negative or zero.

@param hours the time-zone offset _in hours, from -18 to +18 @param minutes the time-zone offset _in minutes, from 0 to ±59, sign matches hours @return the zone-offset, not null @throws DateTimeException if the offset is not _in the required range

class ZoneOffset
static
ofHoursMinutes
(
int hours
,)

Meta