42 references to DateTime
dotnet-svcutil-lib (6)
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDateTime.cs (1)
209_dt = dateTimeOffset.DateTime;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlSerializableReader.cs (1)
117public override DateTime ReadContentAsDateTime() { return InnerReader.ReadContentAsDateTimeOffset().DateTime; }
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriter.cs (1)
1205WriteValue(reader.ReadContentAsDateTimeOffset().DateTime);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReader.cs (2)
740value = ReadContentAsDateTimeOffset().DateTime; 1542return _reader.ReadContentAsDateTimeOffset().DateTime;
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlUtil.cs (1)
149value = reader.ReadContentAsDateTimeOffset().DateTime;
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
FormatWeekHelper.cs (1)
16value = dateTimeOffset.DateTime;
Microsoft.Data.Analysis (1)
DataFrame.Arrow.cs (1)
121dataTimeDataFrameColumn[i] = arrowTimeStampArray.GetTimestamp(i)?.DateTime;
Microsoft.Extensions.ServiceDiscovery.Dns (5)
DnsServiceEndpointProvider.cs (1)
35var now = _timeProvider.GetUtcNow().DateTime;
DnsSrvServiceEndpointProvider.cs (1)
38var now = _timeProvider.GetUtcNow().DateTime;
FallbackDnsResolver.cs (2)
28DateTime expiresAt = _timeProvider.GetUtcNow().DateTime.Add(DefaultRefreshPeriod); 47DateTime now = _timeProvider.GetUtcNow().DateTime;
Resolver\DnsResolver.cs (1)
503DateTime queryStartedTime = _timeProvider.GetUtcNow().DateTime;
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (9)
Resolver\ResolveAddressesTests.cs (3)
74Assert.Equal(TimeProvider.GetUtcNow().DateTime.AddSeconds(3600), res.ExpiresAt); 95Assert.Equal(TimeProvider.GetUtcNow().DateTime.AddSeconds(3600), res.ExpiresAt); 116Assert.Equal(TimeProvider.GetUtcNow().DateTime.AddSeconds(3600), res.ExpiresAt);
Resolver\RetryTests.cs (5)
67Assert.Equal(TimeProvider.GetUtcNow().DateTime.AddSeconds(3600), res.ExpiresAt); 121Assert.Equal(TimeProvider.GetUtcNow().DateTime.AddSeconds(3600), res.ExpiresAt); 186Assert.Equal(TimeProvider.GetUtcNow().DateTime.AddSeconds(3600), res.ExpiresAt); 222Assert.Equal(TimeProvider.GetUtcNow().DateTime.AddSeconds(3600), res.ExpiresAt); 278Assert.Equal(TimeProvider.GetUtcNow().DateTime.AddSeconds(3600), res.ExpiresAt);
Resolver\TcpFailoverTests.cs (1)
38Assert.Equal(TimeProvider.GetUtcNow().DateTime.AddSeconds(3600), res.ExpiresAt);
Microsoft.ML.Data (1)
DataLoadSave\Binary\Codecs.cs (1)
681_ticks.Add(value.DateTime.Ticks);
System.Formats.Tar (1)
src\libraries\Common\src\System\IO\Archiving.Utils.cs (1)
39File.SetLastWriteTime(destinationFileName, lastWriteTime.DateTime);
System.IO.Compression (4)
System\IO\Compression\ZipArchiveEntry.cs (4)
284if (value.DateTime.Year < ZipHelper.ValidZipDate_YearMin || value.DateTime.Year > ZipHelper.ValidZipDate_YearMax) 599BinaryPrimitives.WriteUInt32LittleEndian(cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.LastModified..], ZipHelper.DateTimeToDosTime(_lastModified.DateTime)); 1067BinaryPrimitives.WriteUInt32LittleEndian(lfStaticHeader[ZipLocalFileHeader.FieldLocations.LastModified..], ZipHelper.DateTimeToDosTime(_lastModified.DateTime));
System.IO.Compression.ZipFile (1)
src\libraries\Common\src\System\IO\Archiving.Utils.cs (1)
39File.SetLastWriteTime(destinationFileName, lastWriteTime.DateTime);
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Formatter\Utf8Formatter.Date.cs (3)
37return DateTimeFormat.TryFormatInvariantG(value.DateTime, value.Offset, destination, out bytesWritten); 46return DateTimeFormat.TryFormatO(value.DateTime, value.Offset, destination, out bytesWritten); 52return DateTimeFormat.TryFormatInvariantG(value.DateTime, NullOffset, destination, out bytesWritten);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Date.cs (3)
43value = dateTimeOffset.DateTime; // (returns a DateTimeKind.Unspecified to match DateTime.ParseExact(). Maybe better to return UtcDateTime instead?) 54value = dateTimeOffset.DateTime; // (returns a DateTimeKind.Unspecified to match DateTime.ParseExact(). Maybe better to return UtcDateTime instead?) 84value = dateTimeOffset.DateTime;
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Date.G.cs (1)
172value = valueAsOffset.DateTime;
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (2)
201DateTime adjustedTime = ConvertTime(dateTimeOffset, this).DateTime; 423return IsAmbiguousTime(adjustedTime.DateTime);
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\XmlSerializableReader.cs (1)
118public override DateTime ReadContentAsDateTime() { return InnerReader.ReadContentAsDateTimeOffset().DateTime; }
System\Xml\XmlBinaryWriter.cs (1)
1230WriteValue(reader.ReadContentAsDateTimeOffset().DateTime);
System.Private.Xml (1)
System\Xml\Schema\XsdDateTime.cs (1)
216_dt = dateTimeOffset.DateTime;
System.ServiceModel.Primitives (1)
System\ServiceModel\XmlUtil.cs (1)
168value = reader.ReadContentAsDateTimeOffset().DateTime;