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

◆ GetLocalTimeZoneFromWin32Data()

static TimeZoneInfo System.TimeZoneInfo.GetLocalTimeZoneFromWin32Data ( in Interop::Kernel32::TIME_ZONE_INFORMATION timeZoneInformation,
bool dstDisabled )
inlinestaticprivate

Definition at line 2487 of file TimeZoneInfo.cs.

2488 {
2489 try
2490 {
2492 }
2493 catch (ArgumentException)
2494 {
2495 }
2497 {
2498 }
2499 if (!dstDisabled)
2500 {
2501 try
2502 {
2504 }
2505 catch (ArgumentException)
2506 {
2507 }
2509 {
2510 }
2511 }
2512 return CreateCustomTimeZone("Local", TimeSpan.Zero, "Local", "Local");
2513 }
static TimeZoneInfo CreateCustomTimeZone(string id, TimeSpan baseUtcOffset, string? displayName, string? standardDisplayName)
TimeZoneInfo(string id, TimeSpan baseUtcOffset, string displayName, string standardDisplayName, string daylightDisplayName, AdjustmentRule[] adjustmentRules, bool disableDaylightSavingTime, bool hasIanaId=false)

References System.TimeZoneInfo.TimeZoneInfo(), System.TimeZoneInfo.CreateCustomTimeZone(), and System.TimeSpan.Zero.

Referenced by System.TimeZoneInfo.CachedData.GetCurrentOneYearLocal(), and System.TimeZoneInfo.GetLocalTimeZone().