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

◆ GetOneYearLocalFromUtc()

OffsetAndRule System.TimeZoneInfo.CachedData.GetOneYearLocalFromUtc ( int year)
inline

Definition at line 290 of file TimeZoneInfo.cs.

291 {
292 OffsetAndRule offsetAndRule = _oneYearLocalFromUtc;
293 if (offsetAndRule == null || offsetAndRule.Year != year)
294 {
296 AdjustmentRule[] adjustmentRules = currentOneYearLocal._adjustmentRules;
297 AdjustmentRule rule = ((adjustmentRules != null) ? adjustmentRules[0] : null);
298 offsetAndRule = (_oneYearLocalFromUtc = new OffsetAndRule(year, currentOneYearLocal.BaseUtcOffset, rule));
299 }
300 return offsetAndRule;
301 }
volatile OffsetAndRule _oneYearLocalFromUtc
static TimeZoneInfo GetCurrentOneYearLocal()
TimeZoneInfo(string id, TimeSpan baseUtcOffset, string displayName, string standardDisplayName, string daylightDisplayName, AdjustmentRule[] adjustmentRules, bool disableDaylightSavingTime, bool hasIanaId=false)

References System.TimeZoneInfo.CachedData._oneYearLocalFromUtc, System.Runtime.Serialization.Dictionary, System.TimeZoneInfo.CachedData.GetCurrentOneYearLocal(), and System.year.