77 references to UtcDateTime
Aspire.Confluent.Kafka (5)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedConsumer.cs (1)
339activity.SetEndTime(endTime.UtcDateTime);
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedProducer.cs (4)
75activity?.SetEndTime(end.UtcDateTime); 122activity?.SetEndTime(end.UtcDateTime); 165activity?.SetEndTime(end.UtcDateTime); 206activity?.SetEndTime(end.UtcDateTime);
Aspire.Dashboard (5)
Components\Controls\LogViewer.razor.cs (1)
88? timestamp.UtcDateTime.ToString(KnownFormats.ConsoleLogsUITimestampUtcFormat, CultureInfo.InvariantCulture)
Components\Dialogs\SettingsDialog.razor.cs (1)
100await ConsoleLogsManager.UpdateFiltersAsync(new ConsoleLogsFilters { FilterAllLogsDate = TimeProvider.GetUtcNow().UtcDateTime });
Components\Pages\ConsoleLogs.razor.cs (1)
909var now = TimeProvider.GetUtcNow().UtcDateTime;
ConsoleLogs\LogParser.cs (1)
37timestamp = timestampParseResult.Value.Timestamp.UtcDateTime;
Extensions\TimeProviderExtensions.cs (1)
12var dateTime = TimeZoneInfo.ConvertTimeFromUtc(utcDateTimeOffset.UtcDateTime, timeProvider.LocalTimeZone);
Aspire.Hosting (2)
ApplicationModel\ResourceLoggerService.cs (1)
583var logTime = loggerState._timeProvider.GetUtcNow().UtcDateTime;
Dcp\DcpExecutor.cs (1)
558timestamp = result.Value.Timestamp.UtcDateTime;
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriter.cs (1)
315WriteValue(value.UtcDateTime);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DateTimeOffsetAdapter.cs (1)
69return new DateTimeOffsetAdapter(value.UtcDateTime, (short)value.Offset.TotalMinutes);
KeyManagementSimulator (1)
Program.cs (1)
88var startTime = DateTimeOffset.ParseExact("2015-03-01 00:00:00Z", "u", CultureInfo.InvariantCulture).UtcDateTime;
Microsoft.AspNetCore.DataProtection (2)
KeyManagement\Internal\CacheableKeyRing.cs (1)
26ExpirationTimeUtc = expirationTime.UtcDateTime;
KeyManagement\XmlKeyManager.cs (1)
160return dateTime.UtcDateTime.ToString("yyyyMMddTHHmmssFFFFFFFZ", CultureInfo.InvariantCulture);
Microsoft.AspNetCore.DataProtection.Extensions.Tests (2)
DataProtectionAdvancedExtensionsTests.cs (1)
98return DateTimeOffset.ParseExact(input, "u", CultureInfo.InvariantCulture).UtcDateTime;
TimeLimitedDataProtectorTests.cs (1)
176return DateTimeOffset.ParseExact(input, "u", CultureInfo.InvariantCulture).UtcDateTime;
Microsoft.AspNetCore.DataProtection.Tests (6)
KeyManagement\CacheableKeyRingTests.cs (4)
27Assert.True(CacheableKeyRing.IsValid(cacheableKeyRing, now.UtcDateTime)); 29Assert.False(CacheableKeyRing.IsValid(cacheableKeyRing, now.UtcDateTime)); 42Assert.True(CacheableKeyRing.IsValid(cacheableKeyRing, now.UtcDateTime)); 43Assert.False(CacheableKeyRing.IsValid(cacheableKeyRing, now.AddHours(1).UtcDateTime));
KeyManagement\KeyRingBasedDataProtectorTests.cs (1)
227return DateTimeOffset.ParseExact(input, "u", CultureInfo.InvariantCulture).UtcDateTime;
KeyManagement\KeyRingProviderTests.cs (1)
917return DateTimeOffset.ParseExact(input, "u", CultureInfo.InvariantCulture).UtcDateTime;
Microsoft.DotNet.Baselines.Tasks (1)
PRCreator.cs (1)
520var resetTime = ex.Reset.UtcDateTime;
Microsoft.DotNet.SignCheckLibrary (1)
Utils.cs (1)
101return DateTimeOffset.FromUnixTimeSeconds(unixTime).UtcDateTime;
Microsoft.Extensions.Caching.Memory (1)
MemoryCache.cs (1)
70private DateTime UtcNow => _options.Clock?.UtcNow.UtcDateTime ?? DateTime.UtcNow;
Microsoft.ML.Data (3)
Data\Conversion.cs (3)
835public void Convert(in DZ src, ref I8 dst) => dst = (I8)src.UtcDateTime.Ticks; 893public void Convert(in DZ src, ref R4 dst) => dst = (R4)src.UtcDateTime.Ticks; 911public void Convert(in DZ src, ref R8 dst) => dst = (R8)src.UtcDateTime.Ticks;
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Activity.cs (1)
1249activity.StartTimeUtc = startTime.UtcDateTime;
System.Formats.Cbor (1)
System\Formats\Cbor\Writer\CborWriter.Tag.cs (1)
46value.UtcDateTime.ToString(Rfc3339FormatString, CultureInfo.InvariantCulture) : // prefer 'Z' over '+00:00'
System.Formats.Tar (3)
System\Formats\Tar\TarEntry.cs (1)
573File.SetLastWriteTime(destinationFileName, lastWriteTime.UtcDateTime);
System\Formats\Tar\TarHelpers.cs (2)
146((decimal)(dateTimeOffset.UtcDateTime - DateTime.UnixEpoch).Ticks) / TimeSpan.TicksPerSecond; 457Directory.SetLastWriteTime(fullPath, lastWriteTime.UtcDateTime);
System.Private.CoreLib (33)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Formatter\Utf8Formatter.Date.cs (2)
43return DateTimeFormat.TryFormatR(value.UtcDateTime, NullOffset, destination, out bytesWritten); 49return TryFormatDateTimeL(value.UtcDateTime, destination, out bytesWritten);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Date.cs (1)
80value = dateTimeOffset.UtcDateTime;
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (10)
160DateTime.ValidateLeapSecond(value.UtcDateTime); 195DateTime.ValidateLeapSecond(value.UtcDateTime); 323/// The <see cref="UtcDateTime"/> property is earlier than <see cref="MinValue"/> or later than <see cref="MaxValue"/>. 338public DateTime LocalDateTime => UtcDateTime.ToLocalTime(); 382public int Millisecond => UtcDateTime.Millisecond; 392public int Microsecond => UtcDateTime.Microsecond; 402public int Nanosecond => UtcDateTime.Nanosecond; 424public int Second => UtcDateTime.Second; 743public long ToFileTime() => UtcDateTime.ToFileTimeUtc(); 775public DateTimeOffset ToLocalTime() => ToLocalTime(UtcDateTime, false);
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (6)
272=> FileSystem.GetCreationTime(Path.GetFullPath(path)).UtcDateTime; 293return FileSystem.GetCreationTime(fileHandle).UtcDateTime; 384=> FileSystem.GetLastAccessTime(Path.GetFullPath(path)).UtcDateTime; 405return FileSystem.GetLastAccessTime(fileHandle).UtcDateTime; 496=> FileSystem.GetLastWriteTime(Path.GetFullPath(path)).UtcDateTime; 517return FileSystem.GetLastWriteTime(fileHandle).UtcDateTime;
src\libraries\System.Private.CoreLib\src\System\IO\FileStatus.Unix.cs (1)
585return (time.UtcDateTime.Ticks - DateTimeOffset.UnixEpoch.Ticks - seconds * TimeSpan.TicksPerSecond) * NanosecondsPerTick;
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (6)
621=> default(FileStatus).GetCreationTime(fullPath).UtcDateTime; 624=> default(FileStatus).GetCreationTime(fileHandle).UtcDateTime; 633=> default(FileStatus).GetLastAccessTime(fullPath).UtcDateTime; 636=> default(FileStatus).GetLastAccessTime(fileHandle).UtcDateTime; 645=> default(FileStatus).GetLastWriteTime(fullPath).UtcDateTime; 648=> default(FileStatus).GetLastWriteTime(fileHandle).UtcDateTime;
src\libraries\System.Private.CoreLib\src\System\IO\FileSystemInfo.cs (3)
80get => CreationTimeCore.UtcDateTime; 92get => LastAccessTimeCore.UtcDateTime; 104get => LastWriteTimeCore.UtcDateTime;
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (3)
343GetUtcOffsetFromUtc(dateTimeOffset.UtcDateTime, this); 464GetUtcOffsetFromUtc(dateTimeOffset.UtcDateTime, this, out bool isDaylightSavingTime); 710DateTime utcDateTime = dateTimeOffset.UtcDateTime;
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (1)
1141DateTimeOffset.FromUnixTimeSeconds(unixTime).UtcDateTime;
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\DateTimeOffsetAdapter.cs (1)
65return new DateTimeOffsetAdapter(value.UtcDateTime, (short)value.Offset.TotalMinutes);
System.Private.Xml (1)
System\Xml\Core\XmlWriter.cs (1)
277WriteValue(value.TotalOffsetMinutes != 0 ? value.LocalDateTime : value.UtcDateTime);
System.Runtime.Caching (3)
System\Runtime\Caching\HostFileChangeMonitor.cs (2)
41uniqueId = $"{path}{lastWrite.UtcDateTime.Ticks:X}{fileSize:X}"; 66sb.Append(lastWrite.UtcDateTime.Ticks.ToString("X", CultureInfo.InvariantCulture));
System\Runtime\Caching\MemoryCacheEntry.cs (1)
127_utcAbsExp = absExp.UtcDateTime;
System.Security.Cryptography (2)
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
329return value.UtcDateTime;
System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.manual.cs (1)
10DateTime utcValue = dateTimeOffset.UtcDateTime;
System.Security.Cryptography.Pkcs (1)
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
329return value.UtcDateTime;