25 references to AddYears
mscorlib (15)
system\datetimeoffset.cs (1)
440return new DateTimeOffset(ClockDateTime.AddYears(years), Offset);
system\timezoneinfo.cs (14)
1617ambiguousStartModified = ambiguousStart.AddYears(1); 1618ambiguousEndModified = ambiguousEnd.AddYears(1); 1625ambiguousStartModified = ambiguousStart.AddYears(-1); 1626ambiguousEndModified = ambiguousEnd.AddYears(-1); 1647endTime = endTime.AddYears(startTimeYear - endTimeYear); 1653time = time.AddYears(startTimeYear - timeYear); 1715startModifiedAmbiguousTime = startAmbiguousTime.AddYears(1); 1716endModifiedAmbiguousTime = endAmbiguousTime.AddYears(1); 1723startModifiedAmbiguousTime = startAmbiguousTime.AddYears(-1); 1724endModifiedAmbiguousTime = endAmbiguousTime.AddYears(-1); 1781startModifiedInvalidTime = startInvalidTime.AddYears(1); 1782endModifiedInvalidTime = endInvalidTime.AddYears(1); 1789startModifiedInvalidTime = startInvalidTime.AddYears(-1); 1790endModifiedInvalidTime = endInvalidTime.AddYears(-1);
PresentationFramework (1)
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
584nextDate = startDate.AddYears(1);
System.ServiceModel (1)
System\ServiceModel\Channels\SelfSignedCertificate.cs (1)
30DateTime.UtcNow.AddYears(DefaultLifeSpanInYears),
System.Web (1)
RequestTimeoutManager.cs (1)
62CancelTimedOutRequests(DateTime.UtcNow.AddYears(1)); // future date
System.Web.DataVisualization (2)
Common\General\ChartElement.cs (1)
1335 date = date.AddYears((int)Math.Floor(interval));
Common\General\Label.cs (1)
318labelEnd = DateTime.FromOADate(labelStart).AddYears((int)labelsStep).ToOADate();
System.Web.Extensions (3)
ClientServices\Providers\ClientData.cs (2)
61DateTime.UtcNow.AddYears(-1), 65DateTime.UtcNow.AddYears(-1),
Script\Services\WebServiceClientProxyGenerator.cs (1)
63cachePolicy.SetExpires(lastModifiedDate.AddYears(-1));
System.Windows.Forms.DataVisualization (2)
Common\General\ChartElement.cs (1)
1335 date = date.AddYears((int)Math.Floor(interval));
Common\General\Label.cs (1)
318labelEnd = DateTime.FromOADate(labelStart).AddYears((int)labelsStep).ToOADate();