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