Version

CurrentTimeZone Property

Returns the TimeZoneInfo instance which corresponds to the TimeZone returned from the System.CurrentTimeZone property.
Syntax
'Declaration
 
Public Shared ReadOnly Property CurrentTimeZone As TimeZoneInfo
public static TimeZoneInfo CurrentTimeZone {get;}
Remarks

Time zone information is obtained from the Windows Registry. If the caller does not have permission to read the registry of the local machine, or if the registry contains incomplete or incorrect time zone information, the CurrentTimeZone can return null (Nothing in VB).

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