Skip to main content
Version: Java (Groovy)

timeZoneAliasAdd

The timeZoneAliasAdd method adds a new time zone alias.

Syntax

timeZoneAliasAdd(alias, timeZone)

Parameters

ParameterTypeDescription
aliasString

The new alias name.

timeZoneString

The ZoneId name.

Examples

timeZoneAliasAdd("PTR", "America/Puerto_Rico")

println timeZone("PTR")