Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ FindIdFromTimeZoneInformation()

static string System.TimeZoneInfo.FindIdFromTimeZoneInformation ( in Interop::Kernel32::TIME_ZONE_INFORMATION timeZone,
out bool dstDisabled )
inlinestaticprivate

Definition at line 2443 of file TimeZoneInfo.cs.

2444 {
2445 dstDisabled = false;
2446 using (RegistryKey registryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones", writable: false))
2447 {
2448 if (registryKey == null)
2449 {
2450 return null;
2451 }
2452 string[] subKeyNames = registryKey.GetSubKeyNames();
2453 foreach (string text in subKeyNames)
2454 {
2456 {
2457 return text;
2458 }
2459 }
2460 }
2461 return null;
2462 }
static readonly RegistryKey LocalMachine
Definition Registry.cs:9
static bool TryCompareTimeZoneInformationToRegistry(in Interop.Kernel32.TIME_ZONE_INFORMATION timeZone, string id, out bool dstDisabled)

References Internal.Win32.Registry.LocalMachine, System.text, and System.TimeZoneInfo.TryCompareTimeZoneInformationToRegistry().

Referenced by System.TimeZoneInfo.GetLocalTimeZone().