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
Parameter | Type | Description |
---|---|---|
alias | str | The new alias. |
tz | TimeZone | 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)
- Log