23 references to ToUnixTimeSeconds
aspire (1)
DotNet\DotNetCliRunner.cs (1)
57return ((DateTimeOffset)startTime).ToUnixTimeSeconds();
Aspire.Cli.Tests (3)
Hosting\CliOrphanDetectorTests.cs (3)
55var expectedStartTimeUnixSeconds = ((DateTimeOffset)expectedStartTime).ToUnixTimeSeconds(); 99var expectedStartTimeUnix = ((DateTimeOffset)expectedStartTime).ToUnixTimeSeconds(); 143var expectedStartTimeUnixString = ((DateTimeOffset)expectedStartTime).ToUnixTimeSeconds().ToString();
Aspire.Hosting (1)
Cli\CliOrphanDetector.cs (1)
36var actualStartTimeUnix = ((DateTimeOffset)process.StartTime).ToUnixTimeSeconds();
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\BicepProvisioner.cs (1)
180deploymentName = $"{resource.Name}-{DateTimeOffset.Now.ToUnixTimeSeconds()}";
Aspire.Hosting.Azure.Tests (8)
DefaultUserPrincipalProviderTests.cs (6)
104exp = DateTimeOffset.UtcNow.AddHours(1).ToUnixTimeSeconds(), 105iat = DateTimeOffset.UtcNow.ToUnixTimeSeconds() 127exp = DateTimeOffset.UtcNow.AddHours(1).ToUnixTimeSeconds(), 128iat = DateTimeOffset.UtcNow.ToUnixTimeSeconds() 197exp = DateTimeOffset.UtcNow.AddHours(1).ToUnixTimeSeconds(), 198iat = DateTimeOffset.UtcNow.ToUnixTimeSeconds()
ProvisioningTestHelpers.cs (2)
157exp = DateTimeOffset.UtcNow.AddHours(1).ToUnixTimeSeconds(), 158iat = DateTimeOffset.UtcNow.ToUnixTimeSeconds()
Microsoft.AspNetCore.Identity.FunctionalTests (6)
MapIdentityApiTests.cs (5)
698var unixTimestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds(); 739var unixTimestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds(); 791var unixTimestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds(); 838var unixTimestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds(); 907var unixTimestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds();
Pages\Account\Manage\EnableAuthenticator.cs (1)
49var unixTimestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds();
Microsoft.Extensions.Identity.Core (1)
AuthenticatorTokenProvider.cs (1)
60var unixTimestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds();
System.Formats.Tar (1)
System\Formats\Tar\TarHeader.Write.cs (1)
1177long unixTimeSeconds = timestamp.ToUnixTimeSeconds();
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\IO\FileStatus.Unix.cs (1)
394long seconds = time.ToUnixTimeSeconds();