1 write to Year
System.Text.Json (1)
System\Text\Json\JsonHelpers.Date.cs (1)
171
parseData.
Year
= (int)(digit1 * 1000 + digit2 * 100 + digit3 * 10 + digit4);
5 references to Year
System.Text.Json (5)
System\Text\Json\JsonHelpers.Date.cs (5)
498
if (parseData.
Year
== 0)
504
Debug.Assert(parseData.
Year
<= 9999); // All of our callers to date parse the year from fixed 4-digit fields so this value is trusted.
513
if (dayMinusOne >= 28 && dayMinusOne >= DateTime.DaysInMonth(parseData.
Year
, parseData.Month))
541
ReadOnlySpan<int> days = DateTime.IsLeapYear(parseData.
Year
) ? DaysToMonth366 : DaysToMonth365;
542
int yearMinusOne = parseData.
Year
- 1;