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