parseTimeZoneQuiet

The parseTimeZoneQuiet method parses the supplied string as a time zone.

"Quiet" methods return null instead of throwing an exception when encountering a string that cannot be parsed.

Syntax

Parameters

ParameterTypeDescription
sstring

The string to be converted.

Returns

A ZoneId, or null if invalid input is given.

Examples