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

◆ GetDateTimeNowUtcOffsetFromUtc()

static TimeSpan System.TimeZoneInfo.GetDateTimeNowUtcOffsetFromUtc ( DateTime time,
out bool isAmbiguousLocalDst )
inlinestaticpackage

Definition at line 2546 of file TimeZoneInfo.cs.

2547 {
2548 isAmbiguousLocalDst = false;
2549 int year = time.Year;
2550 OffsetAndRule oneYearLocalFromUtc = s_cachedData.GetOneYearLocalFromUtc(year);
2552 if (oneYearLocalFromUtc.Rule != null)
2553 {
2554 offset += oneYearLocalFromUtc.Rule.BaseUtcOffsetDelta;
2555 if (oneYearLocalFromUtc.Rule.HasDaylightSaving)
2556 {
2559 }
2560 }
2561 return offset;
2562 }
static bool GetIsDaylightSavingsFromUtc(DateTime time, int year, TimeSpan utc, AdjustmentRule rule, int? ruleIndex, out bool isAmbiguousLocalDst, TimeZoneInfo zone)
static CachedData s_cachedData

References System.Runtime.Serialization.Dictionary, System.TimeZoneInfo.GetIsDaylightSavingsFromUtc(), System.offset, System.TimeZoneInfo.s_cachedData, System.DateTime.Year, System.year, and System.TimeSpan.Zero.