19 references to DateTimeOffset
dotnet-svcutil-lib (5)
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDateTime.cs (4)
486result = new DateTimeOffset(dt, new TimeSpan(xdt.ZoneHour, xdt.ZoneMinute, 0)); 489result = new DateTimeOffset(dt, new TimeSpan(-xdt.ZoneHour, -xdt.ZoneMinute, 0)); 492result = new DateTimeOffset(dt, new TimeSpan(0)); 496result = new DateTimeOffset(dt, TimeZoneInfo.Local.GetUtcOffset(dt));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DateTimeOffsetAdapter.cs (1)
50return new DateTimeOffset(value.UtcDateTime, new TimeSpan(0, value.OffsetMinutes, 0));
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Internal\Protocol\MessagePackHubProtocolTests.cs (1)
60var dateTimeOffset = new DateTimeOffset(new DateTime(2018, 4, 9), TimeSpan.FromHours(10));
Microsoft.Extensions.AI.Abstractions.Tests (1)
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
85Value: new(new DateTime(2021, 1, 1), TimeSpan.Zero),
Microsoft.Extensions.TimeProvider.Testing.Tests (1)
FakeTimeProviderTests.cs (1)
280var dto = new DateTimeOffset(new DateTime(2022, 1, 2, 3, 4, 5, 6), TimeSpan.Zero);
Microsoft.ML.Data (1)
DataLoadSave\Binary\Codecs.cs (1)
746value = new DateTimeOffset(new DateTime(ticks == long.MinValue ? default : ticks), new TimeSpan(0, offset == short.MinValue ? default : offset, 0));
Microsoft.Net.Http.Headers.Tests (1)
ContentDispositionHeaderValueTest.cs (1)
403contentDisposition.CreationDate = new DateTimeOffset(new DateTime(2011, 2, 15), new TimeSpan(-8, 0, 0));
Shared.Tests (1)
JsonSchemaExporter\TestTypes.cs (1)
85Value: new(new DateTime(2021, 1, 1), TimeSpan.Zero),
System.Data.Common (1)
System\Data\Filter\FunctionNode.cs (1)
561return new DateTimeOffset((DateTime)argumentValues[0], new TimeSpan((int)argumentValues[1], (int)argumentValues[2], 0));
System.Net.Mail (1)
System\Net\Mime\SmtpDateTime.cs (1)
149DateTimeOffset offset = new DateTimeOffset(_date, _timeZone);
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (1)
135: this(new DateTime(date, time), offset)
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\DateTimeOffsetAdapter.cs (1)
45return new DateTimeOffset(value.UtcDateTime, new TimeSpan(0, value.OffsetMinutes, 0));
System.Private.Xml (4)
System\Xml\Schema\XsdDateTime.cs (4)
467result = new DateTimeOffset(dt, new TimeSpan(xdt.ZoneHour, xdt.ZoneMinute, 0)); 470result = new DateTimeOffset(dt, new TimeSpan(-xdt.ZoneHour, -xdt.ZoneMinute, 0)); 473result = new DateTimeOffset(dt, new TimeSpan(0)); 477result = new DateTimeOffset(dt, TimeZoneInfo.Local.GetUtcOffset(dt));