11 references to Subtract
Aspire.Dashboard (1)
Components\Controls\Chart\ChartContainer.razor.cs (1)
189
var startDate = endDate.
Subtract
(Duration + TimeSpan.FromSeconds(30));
AuthSamples.FunctionalTests (4)
CustomPolicyProviderTests.cs (4)
51
var signIn = await SignIn(Client, "Dude", DateTime.Now.
Subtract
(TimeSpan.FromDays(365 * 20)).ToString(DateTimeFormatInfo.InvariantInfo.ShortDatePattern, CultureInfo.InvariantCulture));
67
var signIn = await SignIn(Client, "Dude", DateTime.Now.
Subtract
(TimeSpan.FromDays(365 * 5)).ToString(DateTimeFormatInfo.InvariantInfo.ShortDatePattern, CultureInfo.InvariantCulture));
82
var signIn = await SignIn(Client, "Dude", DateTime.Now.
Subtract
(TimeSpan.FromDays(365 * 55)).ToString(DateTimeFormatInfo.InvariantInfo.ShortDatePattern, CultureInfo.InvariantCulture));
98
var signIn = await SignIn(Client, "Dude", DateTime.Now.
Subtract
(TimeSpan.FromDays(365 * 20)).ToString(DateTimeFormatInfo.InvariantInfo.ShortDatePattern, CultureInfo.InvariantCulture));
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDateTime.cs (2)
374
return new DateTime(_dt.
Subtract
(new TimeSpan(ZoneHour, ZoneMinute, 0)).Ticks, DateTimeKind.Utc);
697
return _dt.
Subtract
(new TimeSpan(ZoneHour, ZoneMinute, 0));
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
288
_cert.NotAfter.
Subtract
(nestingBuffer),
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
288
_cert.NotAfter.
Subtract
(nestingBuffer),
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (1)
741
public DateTimeOffset Subtract(TimeSpan value) => Add(ClockDateTime.
Subtract
(value));
System.Private.Xml (1)
System\Xml\Schema\XsdDateTime.cs (1)
358
XsdDateTimeKind.LocalEastOfZulu => new DateTime(_dt.
Subtract
(new TimeSpan(ZoneHour, ZoneMinute, 0)).Ticks, DateTimeKind.Utc),