Skip to main content
Version: Python

time_zone_alias_add

time_zone_alias_add adds a new time zone alias.

danger

Do not use this method in a table operation. This method alters system-level properties, and table operations should never alter system-level properties.

Syntax

time_zone_alias_add(alias: str, tz: str)

Parameters

ParameterTypeDescription
aliasstr

The new alias.

tzTimeZone

A time zone name.

Returns

Adds a new time zone alias.

Examples

from deephaven.time import time_zone_alias_add, to_j_time_zone, time_zone_alias_rm

time_zone_alias_rm("ET")
time_zone_alias_add("ET", "America/New_York")

j_tz = to_j_time_zone("ET")

print(j_tz)