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