ListTimeZones

Generates a character-separated list of information about time zone IDs recognised by the local system.

Several functions depend on valid time zone IDs, such as GetTimeZoneInfo. These functions will not accept an ID unless it appears in the list generated by ListTimeZones.

Syntax

ListTimeZones();

Output

The function returns a character-separated string list consisting of each available time zone ID together with the corresponding display name. Each row in the list will be separated using a NOT symbol (¬), and the items in each row will be separated using a pipe (|). The list will potentially contain dozens of time zones, but a small example is shown below:

Argentina Standard Time|(UTC-03:00) City of Buenos Aires¬Greenland Standard Time|(UTC-03:00) Greenland

This data equates to the following table:

Time Zone ID Display Name
Argentina Standard Time (UTC-03:00) City of Buenos Aires
Greenland Standard Time (UTC-03:00) Greenland