20 references to NoThrowOnInvalidTime
mscorlib (20)
system\datetime.cs (5)
716
offsetTicks = TimeZoneInfo.GetLocalUtcOffset(DateTime.MinValue, TimeZoneInfoOptions.
NoThrowOnInvalidTime
).Ticks;
719
offsetTicks = TimeZoneInfo.GetLocalUtcOffset(DateTime.MaxValue, TimeZoneInfoOptions.
NoThrowOnInvalidTime
).Ticks;
801
return TimeZoneInfo.Local.IsDaylightSavingTime(this, TimeZoneInfoOptions.
NoThrowOnInvalidTime
);
820
TimeSpan offset = TimeZoneInfo.GetLocalUtcOffset(this, TimeZoneInfoOptions.
NoThrowOnInvalidTime
);
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\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 (4)
2591
result.timeZoneOffset = TimeZoneInfo.GetLocalUtcOffset(result.parsedDate, TimeZoneInfoOptions.
NoThrowOnInvalidTime
);
2638
result.timeZoneOffset = TimeZoneInfo.GetLocalUtcOffset(result.parsedDate, TimeZoneInfoOptions.
NoThrowOnInvalidTime
);
2722
resultTicks += tz.GetUtcOffset(bTimeOnly ? DateTime.Now: result.parsedDate, TimeZoneInfoOptions.
NoThrowOnInvalidTime
).Ticks;
2733
resultTicks += tz.GetUtcOffset(result.parsedDate, TimeZoneInfoOptions.
NoThrowOnInvalidTime
).Ticks;
system\timezoneinfo.cs (5)
434
return GetUtcOffset(dateTime, TimeZoneInfoOptions.
NoThrowOnInvalidTime
, s_cachedData);
505
return IsAmbiguousTime(dateTime, TimeZoneInfoOptions.
NoThrowOnInvalidTime
);
550
return IsDaylightSavingTime(dateTime, TimeZoneInfoOptions.
NoThrowOnInvalidTime
, s_cachedData);
766
if ( ((flags & TimeZoneInfoOptions.
NoThrowOnInvalidTime
) == 0) && (dateTime.Kind != DateTimeKind.Unspecified) && (dateTime.Kind != sourceKind) ) {
789
if (((flags & TimeZoneInfoOptions.
NoThrowOnInvalidTime
) == 0) && GetIsInvalidTime(dateTime, sourceRule, sourceDaylightTime)) {