Version

GetTimeZones Method

Returns an array list of TimeZoneInfo objects.
Syntax
'Declaration
 
Public Shared Function GetTimeZones() As ArrayList
public static ArrayList GetTimeZones()

Return Value

An array of TimeZoneInfo objects.
Remarks

Note: To ensure that an up-to-date list is returned, the caller must have permission to read the registry keys that contain the time zone information. If the caller does not have such permission, a static list is returned, which cannot be guaranteed to contain current information.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also