Obtains an instance of ZoneOffset using the ID.
This method parses the string ID of a ZoneOffset to
return an instance. The parsing accepts all the formats generated by
getId(), plus some additional formats:
Z - for UTC
+h
+hh
+hh:mm
-hh:mm
+hhmm
-hhmm
+hh:mm:ss
-hh:mm:ss
+hhmmss
-hhmmss
The ID of the returned offset will be normalized to one of the formats
described by getId().
The maximum supported range is from +18:00 to -18:00 inclusive.
offsetId | the offset ID, not null |
DateTimeException | if the offset ID is invalid |
Diagram: Offset