Retrieves information about timezones.

ATimeZones(cArrayName)

Parameters

cArrayName
On return the array contains information from the following registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones". See also the description for the TIME_ZONE_INFORMATION structure.
ColumnContent
1Generic name
2Timezone display name
3Standard timezone name
4Daylight saving timezone name
5Bias: The bias for time translation in minutes. The bias is the difference, in minutes, between Coordinated Universal Time (UTC) and local time.
All translations between UTC and local time are based on the following formula: UTC = local time + bias
6StandardBias: The bias value to be used during local time translations that occur during standard time.
This member is ignored if a value for the StandardDate member is not supplied.
This value is added to the value of the Bias member to form the bias used during standard time. In most time zones, the value of this member is zero.
7DayligthBias: The bias value to be used during local time translations that occur during daylight saving time.
This member is ignored if a value for the DaylightDate member is not supplied.
This value is added to the value of the Bias member to form the bias used during daylight saving time. In most time zones, the value of this member is –60.
 StandardDate: The date and local time when the transition from daylight saving time to standard time occurs on this operating system.
8Month of StandardDate
9Day of StandardDate
10DayOfWeek of StandardDate
11Hour of StandardDate
 DaylightDate: The date and local time when the transition from standard time to daylight saving time occurs on this operating system.
12Month of DaylightDate
13Day of DaylightDate
14DayOfWeek of DaylightDate
15Hour of DaylightDate

Return Value

The number of time zones.

See Also

Reference

Double2DT
DT2Double
DT2FT
DT2ST
DT2Timet
DT2UTC
FT2DT
GetSystemTime
SetSystemTime
ST2DT
Timet2DT
UTC2DT

Used WinApi functions

RegOpenKeyEx
RegQueryInfoKey
RegEnumKeyEx
RegQueryValueEx
RegCloseKey