29 references to FromUnixTimeSeconds
Microsoft.AspNetCore.Components.WebView (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
255private static readonly DateTimeOffset _lastModified = DateTimeOffset.FromUnixTimeSeconds(0);
Microsoft.AspNetCore.Hosting (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
255private static readonly DateTimeOffset _lastModified = DateTimeOffset.FromUnixTimeSeconds(0);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PublishBuildToMaestro.cs (1)
622return DateTimeOffset.FromUnixTimeSeconds(resetTime) - DateTimeOffset.Now;
Microsoft.DotNet.SignCheckLibrary (1)
Utils.cs (1)
101return DateTimeOffset.FromUnixTimeSeconds(unixTime).UtcDateTime;
Microsoft.Extensions.AI.AzureAIInference.Tests (6)
AzureAIInferenceChatClientTests.cs (6)
161Assert.Equal(DateTimeOffset.FromUnixTimeSeconds(1_727_888_631), response.CreatedAt); 233var createdAt = DateTimeOffset.FromUnixTimeSeconds(1_727_889_370); 1010Assert.Equal(DateTimeOffset.FromUnixTimeSeconds(1_727_894_187), response.CreatedAt); 1144Assert.Equal(DateTimeOffset.FromUnixTimeSeconds(1_727_894_187), response.CreatedAt); 1259Assert.Equal(DateTimeOffset.FromUnixTimeSeconds(1_727_894_702), response.CreatedAt); 1346var createdAt = DateTimeOffset.FromUnixTimeSeconds(1_727_895_263);
Microsoft.Extensions.AI.OpenAI.Tests (13)
OpenAIChatClientTests.cs (10)
168Assert.Equal(DateTimeOffset.FromUnixTimeSeconds(1_727_888_631), response.CreatedAt); 245var createdAt = DateTimeOffset.FromUnixTimeSeconds(1_727_889_370); 826Assert.Equal(DateTimeOffset.FromUnixTimeSeconds(1_727_894_187), response.CreatedAt); 923Assert.Equal(DateTimeOffset.FromUnixTimeSeconds(1_727_894_187), response.CreatedAt); 1021Assert.Equal(DateTimeOffset.FromUnixTimeSeconds(1_727_894_187), response.CreatedAt); 1133Assert.Equal(DateTimeOffset.FromUnixTimeSeconds(1_727_894_702), response.CreatedAt); 1217Assert.Equal(DateTimeOffset.FromUnixTimeSeconds(1_727_894_702), response.CreatedAt); 1318var createdAt = DateTimeOffset.FromUnixTimeSeconds(1_727_895_263); 1474Assert.Equal(DateTimeOffset.FromUnixTimeSeconds(1_727_894_187), response.CreatedAt); 1589Assert.Equal(DateTimeOffset.FromUnixTimeSeconds(1_743_531_271), response.CreatedAt);
OpenAIResponseClientTests.cs (3)
162Assert.Equal(DateTimeOffset.FromUnixTimeSeconds(1_741_891_428), response.CreatedAt); 261var createdAt = DateTimeOffset.FromUnixTimeSeconds(1_741_892_091); 583Assert.Equal(DateTimeOffset.FromUnixTimeSeconds(1_741_891_428), response.CreatedAt);
Microsoft.ML.IntegrationTests (1)
Datasets\TypeTestData.cs (1)
144Dz = DateTimeOffset.FromUnixTimeSeconds((long)(rng.NextDouble() * (1 + rng.Next()))),
System.Formats.Cbor (1)
System\Formats\Cbor\Reader\CborReader.Tag.cs (1)
115return DateTimeOffset.FromUnixTimeSeconds(ReadInt64());
System.Net.Security (1)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OCSP.cs (1)
63expiration = DateTimeOffset.FromUnixTimeSeconds(timeT);
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\IO\FileStatus.Unix.cs (1)
367return DateTimeOffset.FromUnixTimeSeconds(seconds).AddTicks(nanoseconds / NanosecondsPerTick);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (1)
1141DateTimeOffset.FromUnixTimeSeconds(unixTime).UtcDateTime;
System.Security.Cryptography (1)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OCSP.cs (1)
63expiration = DateTimeOffset.FromUnixTimeSeconds(timeT);