44 references to Day
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\SqlUtils.cs (3)
1018WriteDate(sb, dto.Year, dto.Month, dto.Day); 1027WriteDate(sb, dto.Year, dto.Month, dto.Day); 1093return (int)(dt.Ticks - new DateTime(dt.Year, dt.Month, dt.Day, dt.Hour, dt.Minute, dt.Second).Ticks);
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (16)
CertificateManagerTests.cs (16)
45now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 138now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 170now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 203now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 234now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 267now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 294now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 334now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 365now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 385now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 403now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 424now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 445now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 462now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 480now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset); 531now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, 0, now.Offset);
Microsoft.AspNetCore.Http.Results.Tests (2)
PhysicalFileResultTest.cs (1)
31LastWriteTimeUtc = new DateTimeOffset(lastModified.Year, lastModified.Month, lastModified.Day, lastModified.Hour, lastModified.Minute, lastModified.Second, TimeSpan.FromSeconds(0))
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
514lastModified = new DateTimeOffset(lastModified.Year, lastModified.Month, lastModified.Day, lastModified.Hour, lastModified.Minute, lastModified.Second, TimeSpan.FromSeconds(0));
Microsoft.AspNetCore.Identity.Test (1)
SecurityStampValidatorTest.cs (1)
314now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, now.Offset); // Truncate to the nearest second.
Microsoft.AspNetCore.Mvc.Core.Test (5)
FileResultHelperTest.cs (3)
251lastModified = new DateTimeOffset(lastModified.Year, lastModified.Month, lastModified.Day, lastModified.Hour, lastModified.Minute, lastModified.Second, TimeSpan.FromSeconds(0)); 329lastModified = new DateTimeOffset(lastModified.Year, lastModified.Month, lastModified.Day, lastModified.Hour, lastModified.Minute, lastModified.Second, TimeSpan.FromSeconds(0)); 365lastModified = new DateTimeOffset(lastModified.Year, lastModified.Month, lastModified.Day, lastModified.Hour, lastModified.Minute, lastModified.Second, TimeSpan.FromSeconds(0));
PhysicalFileResultTest.cs (1)
51LastModified = new DateTimeOffset(lastModified.Year, lastModified.Month, lastModified.Day, lastModified.Hour, lastModified.Minute, lastModified.Second, TimeSpan.FromSeconds(0))
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
514lastModified = new DateTimeOffset(lastModified.Year, lastModified.Month, lastModified.Day, lastModified.Hour, lastModified.Minute, lastModified.Second, TimeSpan.FromSeconds(0));
Microsoft.AspNetCore.ResponseCaching.Tests (1)
ResponseCachingMiddlewareTests.cs (1)
449now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, now.Offset).AddSeconds(1); // Round up to seconds.
Microsoft.AspNetCore.Rewrite (1)
PatternSegments\DateTimeSegment.cs (1)
54return DateTimeOffset.UtcNow.Day.ToString(CultureInfo.InvariantCulture);
Microsoft.AspNetCore.StaticFiles (1)
StaticFileContext.cs (1)
124_lastModified = new DateTimeOffset(last.Year, last.Month, last.Day, last.Hour, last.Minute, last.Second, last.Offset).ToUniversalTime();
Microsoft.AspNetCore.StaticFiles.Tests (1)
StaticFileMiddlewareTests.cs (1)
132var trimmed = new DateTimeOffset(last.Year, last.Month, last.Day, last.Hour, last.Minute, last.Second, last.Offset).ToUniversalTime();
Microsoft.Extensions.Logging.AzureAppServices (3)
AzureBlobLoggerOptions.cs (1)
37return $"{context.AppName}/{timestamp.Year}/{timestamp.Month:00}/{timestamp.Day:00}/{timestamp.Hour:00}/{context.Identifier}";
BlobLoggerProvider.cs (1)
91e.Timestamp.Day,
FileLoggerProvider.cs (1)
71return (message.Timestamp.Year, message.Timestamp.Month, message.Timestamp.Day);
Microsoft.Extensions.TimeProvider.Testing.Tests (3)
FakeTimeProviderTests.cs (3)
25Assert.Equal(1, now.Day); 112Assert.Equal(3, now.Day); 128Assert.Equal(3, now.Day);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\DateTimeOffsetConverter.cs (1)
145new object[] { dto.Year, dto.Month, dto.Day, dto.Hour, dto.Minute, dto.Second, dto.Millisecond, dto.Offset }
System.Formats.Asn1 (2)
System\Formats\Asn1\AsnWriter.GeneralizedTime.cs (1)
116int day = normalized.Day;
System\Formats\Asn1\AsnWriter.UtcTime.cs (1)
93int day = normalized.Day;
System.Private.Xml (3)
System\Xml\BinaryXml\SqlUtils.cs (3)
705WriteDate(sb, dto.Year, dto.Month, dto.Day); 714WriteDate(sb, dto.Year, dto.Month, dto.Day); 780return (int)(dt.Ticks - new DateTime(dt.Year, dt.Month, dt.Day, dt.Hour, dt.Minute, dt.Second).Ticks);
System.Xaml (1)
System\Xaml\Replacements\DateTimeOffsetConverter2.cs (1)
63dtOffset.Day,