ZoneOffset.of

Obtains an instance of {@code ZoneOffset} using the ID. !(p) This method parses the string ID of a {@code ZoneOffset} to return an instance. The parsing accepts all the formats generated by {@link #getId()}, plus some additional formats: !(ul) !(li){@code Z} - for UTC !(li){@code +h} !(li){@code +hh} !(li){@code +hh:mm} !(li){@code -hh:mm} !(li){@code +hhmm} !(li){@code -hhmm} !(li){@code +hh:mm:ss} !(li){@code -hh:mm:ss} !(li){@code +hhmmss} !(li){@code -hhmmss} </ul> Note that &plusmn; means either the plus or minus symbol. !(p) The ID of the returned offset will be normalized to one of the formats described by {@link #getId()}. !(p) The maximum supported range is from +18:00 to -18:00 inclusive.

@param offsetId the offset ID, not null @return the zone-offset, not null @throws DateTimeException if the offset ID is invalid

class ZoneOffset
static
of
(
string offsetId
)

Meta