Obtains an instance of ZoneOffset
using an offset in
hours and minutes.
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.
hours | the time-zone offset in hours, from -18 to +18 | |
minutes | the time-zone offset in minutes, from 0 to ±59, sign matches hours |
DateTimeException | if the offset is not in the required range |
Diagram: Offset