9 instantiations of TimeZoneInfo
mscorlib (9)
system\timezoneinfo.cs (9)
134timeZone = new TimeZoneInfo( 1150return new TimeZoneInfo( 1174return new TimeZoneInfo( 1203return new TimeZoneInfo( 1914return new TimeZoneInfo(timeZoneInformation, dstDisabled); 1922return new TimeZoneInfo(timeZoneInformation, true); 2813value = new TimeZoneInfo( 2869value = new TimeZoneInfo(match.m_id, match.m_baseUtcOffset, match.m_displayName, match.m_standardDisplayName, 2891value = new TimeZoneInfo(match.m_id, match.m_baseUtcOffset, match.m_displayName, match.m_standardDisplayName,
115 references to TimeZoneInfo
mscorlib (106)
system\datetime.cs (10)
716offsetTicks = TimeZoneInfo.GetLocalUtcOffset(DateTime.MinValue, TimeZoneInfoOptions.NoThrowOnInvalidTime).Ticks; 719offsetTicks = TimeZoneInfo.GetLocalUtcOffset(DateTime.MaxValue, TimeZoneInfoOptions.NoThrowOnInvalidTime).Ticks; 726offsetTicks = TimeZoneInfo.GetUtcOffsetFromUtc(utcDt, TimeZoneInfo.Local, out isDaylightSavings, out isAmbiguousLocalDst).Ticks; 801return TimeZoneInfo.Local.IsDaylightSavingTime(this, TimeZoneInfoOptions.NoThrowOnInvalidTime); 820TimeSpan offset = TimeZoneInfo.GetLocalUtcOffset(this, TimeZoneInfoOptions.NoThrowOnInvalidTime); 1057Int64 offset = TimeZoneInfo.GetDateTimeNowUtcOffsetFromUtc(utc, out isAmbiguousLocalDst).Ticks; 1403Int64 offset = TimeZoneInfo.GetUtcOffsetFromUtc(this, TimeZoneInfo.Local, out isDaylightSavings, out isAmbiguousLocalDst).Ticks; 1463return TimeZoneInfo.ConvertTimeToUtc(this, TimeZoneInfoOptions.NoThrowOnInvalidTime);
system\datetimeoffset.cs (2)
73offset = TimeZoneInfo.GetLocalUtcOffset(dateTime, TimeZoneInfoOptions.NoThrowOnInvalidTime); 87if (offset != TimeZoneInfo.GetLocalUtcOffset(dateTime, TimeZoneInfoOptions.NoThrowOnInvalidTime)) {
system\globalization\cultureinfo.cs (1)
1478TimeZoneInfo.ClearCachedData();
system\globalization\datetimeformat.cs (4)
726offset = TimeZoneInfo.GetLocalUtcOffset(DateTime.Now, TimeZoneInfoOptions.NoThrowOnInvalidTime); 738offset = TimeZoneInfo.GetLocalUtcOffset(dateTime, TimeZoneInfoOptions.NoThrowOnInvalidTime); 741offset = TimeZoneInfo.GetLocalUtcOffset(dateTime, TimeZoneInfoOptions.NoThrowOnInvalidTime); 779offset = TimeZoneInfo.GetLocalUtcOffset(dateTime, TimeZoneInfoOptions.NoThrowOnInvalidTime);
system\globalization\datetimeparse.cs (6)
2591result.timeZoneOffset = TimeZoneInfo.GetLocalUtcOffset(result.parsedDate, TimeZoneInfoOptions.NoThrowOnInvalidTime); 2638result.timeZoneOffset = TimeZoneInfo.GetLocalUtcOffset(result.parsedDate, TimeZoneInfoOptions.NoThrowOnInvalidTime); 2712TimeZoneInfo tz = TimeZoneInfo.Local; 2738resultTicks += TimeZoneInfo.GetUtcOffsetFromUtc(utcDt, TimeZoneInfo.Local, out isDaylightSavings, out isAmbiguousLocalDst).Ticks;
system\timezoneinfo.cs (83)
58sealed public class TimeZoneInfo : IEquatable<TimeZoneInfo>, ISerializable, IDeserializationCallback { 120private volatile TimeZoneInfo m_localTimeZone; 121private volatile TimeZoneInfo m_utcTimeZone; 123private TimeZoneInfo CreateLocal() 127TimeZoneInfo timeZone = m_localTimeZone; 129timeZone = TimeZoneInfo.GetLocalTimeZone(this); 149public TimeZoneInfo Local { 151TimeZoneInfo timeZone = m_localTimeZone; 159private TimeZoneInfo CreateUtc() 163TimeZoneInfo timeZone = m_utcTimeZone; 172public TimeZoneInfo Utc { 174Contract.Ensures(Contract.Result<TimeZoneInfo>() != null); 176TimeZoneInfo timeZone = m_utcTimeZone; 189public DateTimeKind GetCorrespondingKind(TimeZoneInfo timeZone) { 225public Dictionary<string, TimeZoneInfo> m_systemTimeZones; 226public ReadOnlyCollection<TimeZoneInfo> m_readOnlySystemTimeZones; 230private static TimeZoneInfo GetCurrentOneYearLocal() { 232TimeZoneInfo match; 248TimeZoneInfo currentYear = GetCurrentOneYearLocal(); 345DateTime adjustedTime = (TimeZoneInfo.ConvertTime(dateTimeOffset, this)).DateTime; 385adjustedTime = TimeZoneInfo.ConvertTime(dateTime, cachedData.Local, this, TimeZoneInfoOptions.None, cachedData); 389adjustedTime = TimeZoneInfo.ConvertTime(dateTime, cachedData.Utc, this, TimeZoneInfoOptions.None, cachedData); 453DateTime adjustedTime = TimeZoneInfo.ConvertTime(dateTime, cachedData.Local, cachedData.Utc, flags); 499DateTimeOffset adjustedTime = TimeZoneInfo.ConvertTime(dateTimeOffset, this); 516adjustedTime = TimeZoneInfo.ConvertTime(dateTime, cachedData.Local, this, flags, cachedData); 520adjustedTime = TimeZoneInfo.ConvertTime(dateTime, cachedData.Utc, this, flags, cachedData); 580adjustedTime = TimeZoneInfo.ConvertTime(dateTime, cachedData.Local, this, flags, cachedData); 672if (dateTime.Kind == DateTimeKind.Local && String.Compare(sourceTimeZoneId, TimeZoneInfo.Local.Id, StringComparison.OrdinalIgnoreCase) == 0) { 681else if (dateTime.Kind == DateTimeKind.Utc && String.Compare(sourceTimeZoneId, TimeZoneInfo.Utc.Id, StringComparison.OrdinalIgnoreCase) == 0) { 703static public DateTimeOffset ConvertTime(DateTimeOffset dateTimeOffset, TimeZoneInfo destinationTimeZone) { 727static public DateTime ConvertTime(DateTime dateTime, TimeZoneInfo destinationTimeZone) { 746static public DateTime ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone) { 751static internal DateTime ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone, TimeZoneInfoOptions flags) { 755static private DateTime ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone, TimeZoneInfoOptions flags, CachedData cachedData) { 831static public DateTime ConvertTimeFromUtc(DateTime dateTime, TimeZoneInfo destinationTimeZone) { 859static public DateTime ConvertTimeToUtc(DateTime dateTime, TimeZoneInfo sourceTimeZone) { 871public bool Equals(TimeZoneInfo other) { 876TimeZoneInfo tzi = obj as TimeZoneInfo; 886static public TimeZoneInfo FromSerializedString(string source) { 923static public ReadOnlyCollection<TimeZoneInfo> GetSystemTimeZones() { 945TimeZoneInfo value; 953List<TimeZoneInfo> list; 956list = new List<TimeZoneInfo>(cachedData.m_systemTimeZones.Values); 960list = new List<TimeZoneInfo>(); 966cachedData.m_readOnlySystemTimeZones = new ReadOnlyCollection<TimeZoneInfo>(list); 979public Boolean HasSameRules(TimeZoneInfo other) { 1028static public TimeZoneInfo Local { 1030Contract.Ensures(Contract.Result<TimeZoneInfo>() != null); 1071static public TimeZoneInfo Utc { 1073Contract.Ensures(Contract.Result<TimeZoneInfo>() != null); 1144static public TimeZoneInfo CreateCustomTimeZone( 1166static public TimeZoneInfo CreateCustomTimeZone( 1194static public TimeZoneInfo CreateCustomTimeZone( 1327static private DateTime ConvertUtcToTimeZone(Int64 ticks, TimeZoneInfo destinationTimeZone, out Boolean isAmbiguousLocalDst) { 1538static private Boolean GetIsDaylightSavingsFromUtc(DateTime time, Int32 Year, TimeSpan utc, AdjustmentRule rule, out Boolean isAmbiguousLocalDst, TimeZoneInfo zone) { 1814static private TimeZoneInfo GetLocalTimeZone(CachedData cachedData) { 1840TimeZoneInfo zone; 1853TimeZoneInfo zone; 1911static private TimeZoneInfo GetLocalTimeZoneFromWin32Data(Win32Native.TimeZoneInformation timeZoneInformation, Boolean dstDisabled) { 1944static public TimeZoneInfo FindSystemTimeZoneById(string id) { 1950return TimeZoneInfo.Utc; 1960TimeZoneInfo value; 1993static private TimeSpan GetUtcOffset(DateTime time, TimeZoneInfo zone, TimeZoneInfoOptions flags) { 2017static private TimeSpan GetUtcOffsetFromUtc(DateTime time, TimeZoneInfo zone) { 2022static private TimeSpan GetUtcOffsetFromUtc(DateTime time, TimeZoneInfo zone, out Boolean isDaylightSavings) { 2041isDaylightSavings = GetIsDaylightSavingsFromUtc(time, timeYear, match.offset, match.rule, out isAmbiguousLocalDst, TimeZoneInfo.Local); 2052static internal TimeSpan GetUtcOffsetFromUtc(DateTime time, TimeZoneInfo zone, out Boolean isDaylightSavings, out Boolean isAmbiguousLocalDst) { 2764static private TimeZoneInfoResult TryGetTimeZoneByRegistryKey(string id, out TimeZoneInfo value, out Exception e) { 2856static private TimeZoneInfoResult TryGetTimeZone(string id, Boolean dstDisabled, out TimeZoneInfo value, out Exception e, CachedData cachedData) { 2859TimeZoneInfo match = null; 2882cachedData.m_systemTimeZones = new Dictionary<string, TimeZoneInfo>(); 3181if (TimeZoneInfo.UtcOffsetOutOfRange(daylightDelta)) { 3563static public String GetSerializedString(TimeZoneInfo zone) { 3619static public TimeZoneInfo GetDeserializedTimeZoneInfo(String source) { 3630return TimeZoneInfo.CreateCustomTimeZone(id, baseUtcOffset, displayName, standardName, daylightName, rules); 4151private class TimeZoneInfoComparer : System.Collections.Generic.IComparer<TimeZoneInfo> { 4152int System.Collections.Generic.IComparer<TimeZoneInfo>.Compare(TimeZoneInfo x, TimeZoneInfo y) {
System (1)
net\System\Net\mail\SmtpDateTime.cs (1)
131TimeSpan localTimeZone = TimeZoneInfo.Local.GetUtcOffset(value);
System.Core (1)
System\TimeZoneInfo.cs (1)
8[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.TimeZoneInfo))]
System.Runtime.Serialization (3)
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (2)
208tickCount = value.Ticks - TimeZoneInfo.Local.GetUtcOffset(value).Ticks; 232ts = TimeZoneInfo.Local.GetUtcOffset(value.ToLocalTime());
System\Xml\XmlConverter.cs (1)
1105TimeSpan ts = TimeZoneInfo.Local.GetUtcOffset(value);
System.Xml (4)
System\Xml\Schema\XsdDateTime.cs (4)
176TimeSpan utcOffset = TimeZoneInfo.Local.GetUtcOffset(dateTime); 407ticks += TimeZoneInfo.Local.GetUtcOffset(result).Ticks; 420ticks += TimeZoneInfo.Local.GetUtcOffset(result).Ticks; 465result = new DateTimeOffset(dt, TimeZoneInfo.Local.GetUtcOffset(dt));