47 references to CurrentEra
System.Private.CoreLib (47)
src\libraries\System.Private.CoreLib\src\System\Globalization\Calendar.cs (8)
264return GetDaysInMonth(year, month, CurrentEra); 279return GetDaysInYear(year, CurrentEra); 318return GetMonthsInYear(year, CurrentEra); 508return IsLeapDay(year, month, day, CurrentEra); 523return IsLeapMonth(year, month, CurrentEra); 539return GetLeapMonth(year, CurrentEra); 572return IsLeapYear(year, CurrentEra); 587return ToDateTime(year, month, day, hour, minute, second, millisecond, CurrentEra);
src\libraries\System.Private.CoreLib\src\System\Globalization\ChineseLunisolarCalendar.cs (1)
271if (era != CurrentEra && era != ChineseEra)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (2)
526if (era == Calendar.CurrentEra) 557if (era == Calendar.CurrentEra)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (2)
2521result.era = Calendar.CurrentEra; 3940if (result.era == -1) result.era = Calendar.CurrentEra;
src\libraries\System.Private.CoreLib\src\System\Globalization\EastAsianLunisolarCalendar.cs (4)
85if (era == CurrentEra) 115if (era == CurrentEra) 155if (era == CurrentEra) 681CheckYearRange(year, CurrentEra);
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendar.cs (10)
213if (era != CurrentEra && era != ADEra) 226if (era != CurrentEra && era != ADEra) 248if (era != CurrentEra && era != ADEra) 273if ((era != CurrentEra && era != ADEra) || 299if (era != CurrentEra && era != ADEra) 328if (era != CurrentEra && era != ADEra) 349if (era != CurrentEra && era != ADEra) 377if (era != CurrentEra && era != ADEra) 390if (era != CurrentEra && era != ADEra) 400if (era != CurrentEra && era != ADEra)
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendarHelper.cs (1)
90if (era == Calendar.CurrentEra)
src\libraries\System.Private.CoreLib\src\System\Globalization\HebrewCalendar.cs (8)
341if (era != CurrentEra && era != HebrewEra) 539while (i > (monthsInYear = GetMonthsInYear(y, CurrentEra))) 553while (months > (monthsInYear = GetMonthsInYear(y, CurrentEra))) 558monthsInYear = GetMonthsInYear(y, CurrentEra); 586CheckHebrewYearValue(y, CurrentEra, nameof(years)); 588int months = GetMonthsInYear(y, CurrentEra); 647beginOfYearDate = ToDateTime(year, 1, 1, 0, 0, 0, 0, CurrentEra); 714else if (IsLeapYear(year, CurrentEra))
src\libraries\System.Private.CoreLib\src\System\Globalization\HijriCalendar.cs (6)
100numDays += 354 + (IsLeapYear(numYearsLeft, CurrentEra) ? 1 : 0); 152if (era != CurrentEra && era != HijriEra) 210long daysOfHijriYear = GetDaysInYear(hijriYear, CurrentEra); // The number of days for (HijriYear+1) year. 220daysToHijriYear -= GetDaysInYear(hijriYear, CurrentEra); 327return IsLeapYear(year, CurrentEra) ? 30 : 29; 338return IsLeapYear(year, CurrentEra) ? 355 : 354;
src\libraries\System.Private.CoreLib\src\System\Globalization\JulianCalendar.cs (1)
54if (era != CurrentEra && era != JulianEra)
src\libraries\System.Private.CoreLib\src\System\Globalization\KoreanLunisolarCalendar.cs (1)
1203if (era != CurrentEra && era != GregorianEra)
src\libraries\System.Private.CoreLib\src\System\Globalization\PersianCalendar.cs (2)
86if (era != CurrentEra && era != PersianEra) 297return IsLeapYear(year, CurrentEra) ? 366 : 365;
src\libraries\System.Private.CoreLib\src\System\Globalization\UmAlQuraCalendar.cs (1)
310if (era != CurrentEra && era != UmAlQuraEra)