11 overrides of GetYear
System.Private.CoreLib (11)
src\libraries\System.Private.CoreLib\src\System\Globalization\EastAsianLunisolarCalendar.cs (1)
560public override int GetYear(DateTime time)
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendar.cs (1)
267public override int GetYear(DateTime time) => time.Year;
src\libraries\System.Private.CoreLib\src\System\Globalization\HebrewCalendar.cs (1)
701public override int GetYear(DateTime time)
src\libraries\System.Private.CoreLib\src\System\Globalization\HijriCalendar.cs (1)
360public override int GetYear(DateTime time)
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.cs (1)
158public override int GetYear(DateTime time)
src\libraries\System.Private.CoreLib\src\System\Globalization\JulianCalendar.cs (1)
263public override int GetYear(DateTime time)
src\libraries\System.Private.CoreLib\src\System\Globalization\KoreanCalendar.cs (1)
115public override int GetYear(DateTime time)
src\libraries\System.Private.CoreLib\src\System\Globalization\PersianCalendar.cs (1)
324public override int GetYear(DateTime time)
src\libraries\System.Private.CoreLib\src\System\Globalization\TaiwanCalendar.cs (1)
115public override int GetYear(DateTime time)
src\libraries\System.Private.CoreLib\src\System\Globalization\ThaiBuddhistCalendar.cs (1)
96public override int GetYear(DateTime time)
src\libraries\System.Private.CoreLib\src\System\Globalization\UmAlQuraCalendar.cs (1)
526public override int GetYear(DateTime time)
21 references to GetYear
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
FormatWeekHelper.cs (1)
32var year = calendar.GetYear(date);
Microsoft.VisualBasic.Core (8)
Microsoft\VisualBasic\DateAndTime.vb (8)
186Return cal.GetYear(Date2) - cal.GetYear(Date1) 189Return (cal.GetYear(Date2) - cal.GetYear(Date1)) * 12 + cal.GetMonth(Date2) - cal.GetMonth(Date1) 208Return (cal.GetYear(Date2) - cal.GetYear(Date1)) * 4 + (cal.GetMonth(Date2) - 1) \ 3 - (cal.GetMonth(Date1) - 1) \ 3 234Return CurrentCalendar.GetYear(DateValue) 468Return CurrentCalendar.GetYear(DateValue)
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\Globalization\Calendar.cs (2)
612return year >= GetYear(MinSupportedDateTime) && year <= GetYear(MaxSupportedDateTime);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (2)
263if (dtfi.Calendar.IsLeapYear(dtfi.Calendar.GetYear(time))) 623int year = cal.GetYear(dateTime);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (2)
1803if (year < Calendar.GetYear(Calendar.MinSupportedDateTime) || year > Calendar.GetYear(Calendar.MaxSupportedDateTime))
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (3)
1546result.Year = result.calendar.GetYear(GetDateTimeNow(ref result, ref styles)); 3908result.Year = cal.GetYear(now); 3924result.Year = cal.GetYear(now);
src\libraries\System.Private.CoreLib\src\System\Globalization\EastAsianLunisolarCalendar.cs (1)
408int gy = gregorianCalendar.GetYear(time);
System.Security.Cryptography (2)
System\Security\Cryptography\Helpers.cs (2)
264return (year >= calendar.GetYear(calendar.MinSupportedDateTime) && year <= calendar.GetYear(calendar.MaxSupportedDateTime));