41 references to Second
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\SqlUtils.cs (3)
1029
WriteTimeFullPrecision(sb, dto.Hour, dto.Minute, dto.
Second
, GetFractions(dto));
1038
WriteTimeFullPrecision(sb, dto.Hour, dto.Minute, dto.
Second
, GetFractions(dto));
1093
return (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)
45
now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.
Second
, 0, now.Offset);
138
now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.
Second
, 0, now.Offset);
170
now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.
Second
, 0, now.Offset);
203
now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.
Second
, 0, now.Offset);
234
now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.
Second
, 0, now.Offset);
267
now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.
Second
, 0, now.Offset);
294
now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.
Second
, 0, now.Offset);
334
now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.
Second
, 0, now.Offset);
365
now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.
Second
, 0, now.Offset);
385
now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.
Second
, 0, now.Offset);
403
now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.
Second
, 0, now.Offset);
424
now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.
Second
, 0, now.Offset);
445
now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.
Second
, 0, now.Offset);
462
now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.
Second
, 0, now.Offset);
480
now = new DateTimeOffset(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.
Second
, 0, now.Offset);
531
now = 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)
31
LastWriteTimeUtc = new DateTimeOffset(lastModified.Year, lastModified.Month, lastModified.Day, lastModified.Hour, lastModified.Minute, lastModified.
Second
, TimeSpan.FromSeconds(0))
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
514
lastModified = 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)
314
now = 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)
251
lastModified = new DateTimeOffset(lastModified.Year, lastModified.Month, lastModified.Day, lastModified.Hour, lastModified.Minute, lastModified.
Second
, TimeSpan.FromSeconds(0));
329
lastModified = new DateTimeOffset(lastModified.Year, lastModified.Month, lastModified.Day, lastModified.Hour, lastModified.Minute, lastModified.
Second
, TimeSpan.FromSeconds(0));
365
lastModified = new DateTimeOffset(lastModified.Year, lastModified.Month, lastModified.Day, lastModified.Hour, lastModified.Minute, lastModified.
Second
, TimeSpan.FromSeconds(0));
PhysicalFileResultTest.cs (1)
51
LastModified = new DateTimeOffset(lastModified.Year, lastModified.Month, lastModified.Day, lastModified.Hour, lastModified.Minute, lastModified.
Second
, TimeSpan.FromSeconds(0))
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
514
lastModified = 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)
449
now = 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)
60
return DateTimeOffset.UtcNow.
Second
.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)
132
var trimmed = new DateTimeOffset(last.Year, last.Month, last.Day, last.Hour, last.Minute, last.
Second
, last.Offset).ToUniversalTime();
Microsoft.Extensions.TimeProvider.Testing.Tests (3)
FakeTimeProviderTests.cs (3)
28
Assert.Equal(0, now.
Second
);
115
Assert.Equal(6, now.
Second
);
131
Assert.Equal(6, now.
Second
);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\DateTimeOffsetConverter.cs (1)
145
new 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)
119
int second = normalized.
Second
;
System\Formats\Asn1\AsnWriter.UtcTime.cs (1)
96
int second = normalized.
Second
;
System.Private.Xml (3)
System\Xml\BinaryXml\SqlUtils.cs (3)
716
WriteTimeFullPrecision(sb, dto.Hour, dto.Minute, dto.
Second
, GetFractions(dto));
725
WriteTimeFullPrecision(sb, dto.Hour, dto.Minute, dto.
Second
, GetFractions(dto));
780
return (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)
66
dtOffset.
Second
,