22 references to UnixEpoch
Microsoft.AspNetCore.Authentication.Cookies (2)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (2)
306Expires = DateTimeOffset.UnixEpoch, 334Expires = DateTimeOffset.UnixEpoch,
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
340var secondsSinceUnixEpocStart = TimeProvider.GetUtcNow() - DateTimeOffset.UnixEpoch;
Microsoft.AspNetCore.CookiePolicy.Test (2)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (2)
306Expires = DateTimeOffset.UnixEpoch, 334Expires = DateTimeOffset.UnixEpoch,
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (2)
ConverterTests\JsonConverterReadTests.cs (1)
478Assert.Equal(DateTimeOffset.UnixEpoch, timestamp.ToDateTimeOffset());
ConverterTests\JsonConverterWriteTests.cs (1)
285var timestamp = Timestamp.FromDateTimeOffset(DateTimeOffset.UnixEpoch);
Microsoft.AspNetCore.Http (1)
Internal\ResponseCookies.cs (1)
165Expires = DateTimeOffset.UnixEpoch,
Microsoft.AspNetCore.Http.Extensions.Tests (4)
RequestDelegateFactoryTests.cs (2)
327new object[] { (Action<HttpContext, DateTimeOffset[]>)Store, new[] { "1970-01-01T00:00:00.0000000+00:00" },new[] { DateTimeOffset.UnixEpoch } }, 378new object[] { (Action<HttpContext, DateTimeOffset>)Store, "1970-01-01T00:00:00.0000000+00:00", DateTimeOffset.UnixEpoch },
RequestDelegateGenerator\RequestDelegateCreationTests.Arrays.cs (1)
134new object[] { "DateTimeOffset[]", new[] { "1970-01-01T00:00:00.0000000+00:00" },new[] { DateTimeOffset.UnixEpoch } },
RequestDelegateGenerator\RequestDelegateCreationTests.TryParse.cs (1)
43new object[] { "DateTimeOffset", "1970-01-01T00:00:00.0000000+00:00", DateTimeOffset.UnixEpoch },
Microsoft.AspNetCore.Identity.FunctionalTests (1)
src\Identity\Extensions.Core\src\Rfc6238AuthenticationService.cs (1)
84var delta = DateTimeOffset.UtcNow - DateTimeOffset.UnixEpoch;
Microsoft.AspNetCore.Mvc.Core (2)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (2)
306Expires = DateTimeOffset.UnixEpoch, 334Expires = DateTimeOffset.UnixEpoch,
Microsoft.Extensions.Identity.Core (1)
Rfc6238AuthenticationService.cs (1)
84var delta = DateTimeOffset.UtcNow - DateTimeOffset.UnixEpoch;
System.Formats.Cbor (1)
System\Formats\Cbor\CborHelpers.netcoreapp.cs (1)
14public static readonly DateTimeOffset UnixEpoch = DateTimeOffset.UnixEpoch;
System.Formats.Tar (3)
System\Formats\Tar\TarEntry.cs (2)
98/// <exception cref="ArgumentOutOfRangeException">The specified value is larger than <see cref="DateTimeOffset.UnixEpoch"/> when using <see cref="TarEntryFormat.V7"/> or <see cref="TarEntryFormat.Ustar"/>.</exception> 106ArgumentOutOfRangeException.ThrowIfLessThan(value, DateTimeOffset.UnixEpoch);
System\Formats\Tar\TarHeader.Write.cs (1)
472_mTime = DateTimeOffset.UnixEpoch, // Stores as series of 0 characters
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Guid.cs (1)
302/// <exception cref="ArgumentOutOfRangeException"><paramref name="timestamp" /> represents an offset prior to <see cref="DateTimeOffset.UnixEpoch" />.</exception>
src\libraries\System.Private.CoreLib\src\System\IO\FileStatus.Unix.cs (1)
585return (time.UtcDateTime.Ticks - DateTimeOffset.UnixEpoch.Ticks - seconds * TimeSpan.TicksPerSecond) * NanosecondsPerTick;