timeZone

timeZone returns the time zone for a time zone name, or the default time zone if no name is provided.

Syntax

Parameters

ParameterTypeDescription
timeZonestring

The time zone name.

Returns

The corresponding time zone.

Examples