parseTimeZone
The parseTimeZone
method parses the supplied string as a time zone.
Syntax
parseTimeZone(s)
Parameters
Parameter | Type | Description |
---|---|---|
s | string | The string to be converted. |
Returns
A ZoneId.
Examples
tz = parseTimeZone("America/Los_Angeles")
println epochMillisToZonedDateTime(100, tz)
- Log