25 references to DateTimeOffset
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\SqlUtils.cs (1)
977DateTimeOffset dto = new DateTimeOffset(dateTicks + timeTicks + zoneTicks, new TimeSpan(zoneTicks));
Microsoft.AspNetCore.DataProtection.Extensions (1)
TimeLimitedDataProtector.cs (1)
82DateTimeOffset embeddedExpiration = new DateTimeOffset(checked((long)utcTicksExpiration), TimeSpan.Zero /* UTC */);
Microsoft.AspNetCore.Identity (1)
DataProtectorTokenProvider.cs (1)
207=> new DateTimeOffset(reader.ReadInt64(), TimeSpan.Zero);
Microsoft.AspNetCore.Mvc.Core.Test (2)
FileResultHelperTest.cs (2)
412LastModified = new DateTimeOffset(ticks, TimeSpan.Zero) 450LastModified = new DateTimeOffset(ticks, TimeSpan.Zero)
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheEntryFormatter.cs (1)
247var created = new DateTimeOffset(ticks, TimeSpan.FromMinutes(offsetMinutes));
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
RedisOutputCacheStore.cs (1)
482return ticks == 0 ? DateTimeOffset.MinValue : new DateTimeOffset(ticks, TimeSpan.Zero);
Microsoft.Extensions.Caching.Memory (1)
CacheEntry.cs (1)
74return new DateTimeOffset(_absoluteExpirationTicks + offset.Ticks, offset);
Microsoft.Extensions.Caching.StackExchangeRedis (2)
RedisCache.cs (2)
71return ticks == 0 ? DateTimeOffset.MinValue : new DateTimeOffset(ticks, TimeSpan.Zero); 510absoluteExpiration = new DateTimeOffset(absoluteExpirationTicks.Value, TimeSpan.Zero);
Microsoft.Extensions.TimeProvider.Testing.Tests (4)
FakeTimeProviderTests.cs (4)
52Assert.Equal(nowOffset, new DateTimeOffset(timestamp1, TimeSpan.Zero)); 53Assert.Equal(nowOffset, new DateTimeOffset(timestamp2, TimeSpan.Zero)); 69Assert.Equal(nowOffset, new DateTimeOffset(timestamp1, TimeSpan.Zero)); 70Assert.Equal(nowOffset.AddMilliseconds(msToElapse), new DateTimeOffset(timestamp2, TimeSpan.Zero));
System.Formats.Tar (2)
System\Formats\Tar\TarHelpers.cs (2)
138new DateTimeOffset((secondsSinceUnixEpoch * TimeSpan.TicksPerSecond) + DateTime.UnixEpoch.Ticks, TimeSpan.Zero); 142new DateTimeOffset((long)(secondsSinceUnixEpoch * TimeSpan.TicksPerSecond) + DateTime.UnixEpoch.Ticks, TimeSpan.Zero);
System.Private.CoreLib (4)
src\libraries\Common\src\System\TimeProvider.cs (1)
71return new DateTimeOffset(localTicks, offset);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Date.Helpers.cs (1)
42value = new DateTimeOffset(ticks: dateTime.Ticks, offset: new TimeSpan(ticks: offsetTicks));
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
180return new DateTimeOffset(dateTime.Ticks, default);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
719new DateTimeOffset(ticks, destinationOffset);
System.Private.Windows.Core (3)
System\Value.cs (2)
733DateTimeOffset dto = new(_union.Ticks, TimeSpan.Zero); 895DateTimeOffset? dto = new DateTimeOffset(_union.Ticks, TimeSpan.Zero);
System\Value.PackedDateTimeOffset.cs (1)
74return new((long)((_data & TickMask) + BaseTicks), offset);
System.Private.Xml (1)
System\Xml\BinaryXml\SqlUtils.cs (1)
664DateTimeOffset dto = new DateTimeOffset(dateTicks + timeTicks + zoneTicks, new TimeSpan(zoneTicks));
System.Text.Json (1)
System\Text\Json\JsonHelpers.Date.cs (1)
434value = new DateTimeOffset(ticks: dateTime.Ticks, offset: new TimeSpan(ticks: offsetTicks));