59 references to Offset
dotnet-svcutil-lib (6)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\SqlUtils.cs (3)
1019WriteTimeZone(sb, dto.Offset); 1030WriteTimeZone(sb, dto.Offset); 1039WriteTimeZone(sb, dto.Offset);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriter.cs (1)
309if (value.Offset != TimeSpan.Zero)
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDateTime.cs (1)
211TimeSpan zoneOffset = dateTimeOffset.Offset;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DateTimeOffsetAdapter.cs (1)
69return new DateTimeOffsetAdapter(value.UtcDateTime, (short)value.Offset.TotalMinutes);
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (16)
CertificateManagerTests.cs (16)
45now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 138now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 170now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 203now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 234now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 267now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 294now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 334now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 365now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 385now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 403now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 424now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 445now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 462now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 480now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 531now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset);
Microsoft.AspNetCore.Identity.Test (1)
SecurityStampValidatorTest.cs (1)
314now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, now.Offset); // Truncate to the nearest second.
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheEntryFormatter.cs (1)
130writer.Write7BitEncodedInt64((long)entry.Created.Offset.TotalMinutes);
Microsoft.AspNetCore.ResponseCaching.Tests (1)
ResponseCachingMiddlewareTests.cs (1)
449now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, now.Offset).AddSeconds(1); // Round up to seconds.
Microsoft.AspNetCore.StaticAssets.Tests (1)
StaticAssetsIntegrationTests.cs (1)
765Assert.Equal(response.Content.Headers.LastModified.Value.Offset, TimeSpan.Zero);
Microsoft.AspNetCore.StaticFiles (1)
StaticFileContext.cs (1)
124_lastModified = new DateTimeOffset(last.Year, last.Month, last.Day, last.Hour, last.Minute, last.Second, last.Offset).ToUniversalTime();
Microsoft.AspNetCore.StaticFiles.Tests (2)
CacheHeaderTests.cs (1)
172Assert.Equal(response.Content.Headers.LastModified.Value.Offset, TimeSpan.Zero);
StaticFileMiddlewareTests.cs (1)
132var trimmed = new DateTimeOffset(last.Year, last.Month, last.Day, last.Hour, last.Minute, last.Second, last.Offset).ToUniversalTime();
Microsoft.Extensions.TimeProvider.Testing.Tests (2)
FakeTimeProviderTests.cs (2)
30Assert.Equal(TimeSpan.Zero, now.Offset); 116Assert.Equal(TimeSpan.Zero, now.Offset);
Microsoft.ML.Data (1)
DataLoadSave\Binary\Codecs.cs (1)
687_offsets.Add((short)(value.Offset.TotalMinutes));
System.ComponentModel.TypeConverter (1)
System\ComponentModel\DateTimeOffsetConverter.cs (1)
145new object[] { dto.Year, dto.Month, dto.Day, dto.Hour, dto.Minute, dto.Second, dto.Millisecond, dto.Offset }
System.Data.Common (2)
System\Data\Filter\FunctionNode.cs (2)
544if (DateTimeOffset.Now.Offset.Hours != (int)argumentValues[1] && DateTimeOffset.Now.Offset.Minutes != (int)argumentValues[2])
System.Private.CoreLib (14)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Formatter\Utf8Formatter.Date.cs (2)
37return DateTimeFormat.TryFormatInvariantG(value.DateTime, value.Offset, destination, out bytesWritten); 46return DateTimeFormat.TryFormatO(value.DateTime, value.Offset, destination, out bytesWritten);
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (11)
533private DateTimeOffset Add(DateTime dateTime) => new DateTimeOffset(_offsetMinutes, ValidateDate(dateTime, Offset)); 617ValidateOffset(Offset); 618ValidateDate(ClockDateTime, Offset); 793DateTimeFormat.Format(ClockDateTime, null, null, Offset); 796DateTimeFormat.Format(ClockDateTime, format, null, Offset); 799DateTimeFormat.Format(ClockDateTime, null, formatProvider, Offset); 802DateTimeFormat.Format(ClockDateTime, format, formatProvider, Offset); 805DateTimeFormat.TryFormat(ClockDateTime, destination, out charsWritten, format, formatProvider, Offset); 809DateTimeFormat.TryFormat(ClockDateTime, utf8Destination, out bytesWritten, format, formatProvider, Offset); 1020/// Deconstructed parameter for <see cref="Offset"/>. 1026offset = Offset;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\SimpleTypeInfos.cs (1)
253TraceLoggingDataCollector.AddScalar(dateTimeOffset.Offset.Ticks);
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\DateTimeOffsetAdapter.cs (1)
65return new DateTimeOffsetAdapter(value.UtcDateTime, (short)value.Offset.TotalMinutes);
System.Private.Windows.Core (1)
System\Value.cs (1)
487TimeSpan offset = value.Offset;
System.Private.Xml (7)
System\Xml\BinaryXml\SqlUtils.cs (3)
706WriteTimeZone(sb, dto.Offset); 717WriteTimeZone(sb, dto.Offset); 726WriteTimeZone(sb, dto.Offset);
System\Xml\Schema\XsdDateTime.cs (1)
218TimeSpan zoneOffset = dateTimeOffset.Offset;
System\Xml\Serialization\CodeGenerator.cs (1)
863Ldc(((DateTimeOffset)o).Offset); // offset
System\Xml\Serialization\XmlSerializationWriter.cs (2)
4355Writer.Write(((DateTimeOffset)value).Offset.GetType().FullName); 4357Writer.Write(((DateTimeOffset)value).Offset.Ticks.ToString(CultureInfo.InvariantCulture));
System.Xaml (1)
System\Xaml\Replacements\DateTimeOffsetConverter2.cs (1)
68dtOffset.Offset