41 references to TimeZoneInfoOptions
mscorlib (41)
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 (26)
385
adjustedTime = TimeZoneInfo.ConvertTime(dateTime, cachedData.Local, this,
TimeZoneInfoOptions
.None, cachedData);
389
adjustedTime = TimeZoneInfo.ConvertTime(dateTime, cachedData.Utc, this,
TimeZoneInfoOptions
.None, cachedData);
434
return GetUtcOffset(dateTime,
TimeZoneInfoOptions
.NoThrowOnInvalidTime, s_cachedData);
438
internal static TimeSpan GetLocalUtcOffset(DateTime dateTime,
TimeZoneInfoOptions
flags) {
443
internal TimeSpan GetUtcOffset(DateTime dateTime,
TimeZoneInfoOptions
flags) {
447
private TimeSpan GetUtcOffset(DateTime dateTime,
TimeZoneInfoOptions
flags, CachedData cachedData) {
505
return IsAmbiguousTime(dateTime,
TimeZoneInfoOptions
.NoThrowOnInvalidTime);
508
internal Boolean IsAmbiguousTime(DateTime dateTime,
TimeZoneInfoOptions
flags) {
550
return IsDaylightSavingTime(dateTime,
TimeZoneInfoOptions
.NoThrowOnInvalidTime, s_cachedData);
553
internal Boolean IsDaylightSavingTime(DateTime dateTime,
TimeZoneInfoOptions
flags) {
557
private Boolean IsDaylightSavingTime(DateTime dateTime,
TimeZoneInfoOptions
flags, CachedData cachedData) {
679
return ConvertTime(dateTime, cachedData.Local, FindSystemTimeZoneById(destinationTimeZoneId),
TimeZoneInfoOptions
.None, cachedData);
688
return ConvertTime(dateTime, cachedData.Utc, FindSystemTimeZoneById(destinationTimeZoneId),
TimeZoneInfoOptions
.None, cachedData);
739
return ConvertTime(dateTime, cachedData.Utc, destinationTimeZone,
TimeZoneInfoOptions
.None, cachedData);
742
return ConvertTime(dateTime, cachedData.Local, destinationTimeZone,
TimeZoneInfoOptions
.None, cachedData);
747
return ConvertTime(dateTime, sourceTimeZone, destinationTimeZone,
TimeZoneInfoOptions
.None, s_cachedData);
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) {
766
if ( ((flags &
TimeZoneInfoOptions
.NoThrowOnInvalidTime) == 0) && (dateTime.Kind != DateTimeKind.Unspecified) && (dateTime.Kind != sourceKind) ) {
789
if (((flags &
TimeZoneInfoOptions
.NoThrowOnInvalidTime) == 0) && GetIsInvalidTime(dateTime, sourceRule, sourceDaylightTime)) {
833
return ConvertTime(dateTime, cachedData.Utc, destinationTimeZone,
TimeZoneInfoOptions
.None, cachedData);
847
return ConvertTime(dateTime, cachedData.Local, cachedData.Utc,
TimeZoneInfoOptions
.None, cachedData);
851
static internal DateTime ConvertTimeToUtc(DateTime dateTime,
TimeZoneInfoOptions
flags) {
861
return ConvertTime(dateTime, sourceTimeZone, cachedData.Utc,
TimeZoneInfoOptions
.None, cachedData);
1478
static private Boolean GetIsDaylightSavings(DateTime time, AdjustmentRule rule, DaylightTimeStruct daylightTime,
TimeZoneInfoOptions
flags) {
1993
static private TimeSpan GetUtcOffset(DateTime time, TimeZoneInfo zone,
TimeZoneInfoOptions
flags) {