7 writes to Calendar
PresentationFramework (2)
System\Windows\Controls\DateTimeHelper.cs (2)
157
dtfi.
Calendar
= new GregorianCalendar();
162
dtfi.
Calendar
= foundCal;
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
1171
dtfi.
Calendar
= GregorianCalendar.GetDefaultInstance();
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (2)
1887
temp.
Calendar
= JapaneseCalendar.GetDefaultInstance();
1905
temp.
Calendar
= TaiwanCalendar.GetDefaultInstance();
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
3993
dtfi.
Calendar
= GregorianCalendar.GetDefaultInstance();
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\X509Certificate.cs (1)
748
culture.DateTimeFormat.
Calendar
= new HijriCalendar();
54 references to Calendar
System.Private.CoreLib (51)
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (2)
907
if (_dateTimeInfo != null && _dateTimeInfo.
Calendar
== _calendar)
913
ci._calendar = ci.DateTimeFormat.
Calendar
;
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (5)
263
if (dtfi.
Calendar
.IsLeapYear(dtfi.
Calendar
.GetYear(time)))
431
Calendar cal = dtfi.
Calendar
;
1148
dtfi.
Calendar
.ID is
1168
if (dtfi.
Calendar
.GetType() != typeof(GregorianCalendar))
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (38)
165
abbreviatedDayNames = _cultureData.AbbreviatedDayNames(
Calendar
.ID);
179
m_superShortDayNames = _cultureData.SuperShortDayNames(
Calendar
.ID);
193
dayNames = _cultureData.DayNames(
Calendar
.ID);
207
abbreviatedMonthNames = _cultureData.AbbreviatedMonthNames(
Calendar
.ID);
222
monthNames = _cultureData.MonthNames(
Calendar
.ID);
335
n.calendar = (Calendar)
Calendar
.Clone();
518
internal string[] EraNames => m_eraNames ??= _cultureData.EraNames(
Calendar
.ID);
528
era =
Calendar
.CurrentEraValue;
543
internal string[] AbbreviatedEraNames => m_abbrevEraNames ??= _cultureData.AbbrevEraNames(
Calendar
.ID);
559
era =
Calendar
.CurrentEraValue;
578
Debug.Assert(
Calendar
.ID > 0, "[DateTimeFormatInfo.AbbreviatedEnglishEraNames] Expected Calendar.ID > 0");
579
m_abbrevEnglishEraNames = _cultureData.AbbreviatedEnglishEraNames(
Calendar
.ID);
593
dateSeparator ??= _cultureData.DateSeparator(
Calendar
.ID);
773
Debug.Assert(
Calendar
.ID > 0, "[DateTimeFormatInfo.MonthDayPattern] Expected calID > 0");
774
monthDayPattern = _cultureData.MonthDay(
Calendar
.ID);
1200
m_genitiveAbbreviatedMonthNames = _cultureData.AbbreviatedGenitiveMonthNames(
Calendar
.ID);
1210
genitiveMonthNames = _cultureData.GenitiveMonthNames(
Calendar
.ID);
1227
Debug.Assert(
Calendar
.ID > 0, "[DateTimeFormatInfo.InternalGetLeapYearMonthNames] Expected Calendar.ID > 0");
1228
leapYearMonthNames = _cultureData.LeapYearMonthNames(
Calendar
.ID);
1449
Debug.Assert(
Calendar
.ID > 0, "[DateTimeFormatInfo.UnclonedYearMonthPatterns] Expected Calendar.ID > 0");
1450
allYearMonthPatterns = _cultureData.YearMonths(
Calendar
.ID);
1470
Debug.Assert(
Calendar
.ID > 0, "[DateTimeFormatInfo.UnclonedShortDatePatterns] Expected Calendar.ID > 0");
1471
allShortDatePatterns = _cultureData.ShortDates(
Calendar
.ID);
1491
Debug.Assert(
Calendar
.ID > 0, "[DateTimeFormatInfo.UnclonedLongDatePatterns] Expected Calendar.ID > 0");
1492
allLongDatePatterns = _cultureData.LongDates(
Calendar
.ID);
1553
newInfo.calendar = Calendar.ReadOnly(dtfi.
Calendar
);
1568
public string NativeCalendarName => _cultureData.CalendarName(
Calendar
.ID);
1762
(DateTimeFormatFlags)DateTimeFormatInfoScanner.GetFormatFlagUseHebrewCalendar((int)
Calendar
.ID);
1803
if (year <
Calendar
.GetYear(
Calendar
.MinSupportedDateTime) || year >
Calendar
.GetYear(
Calendar
.MaxSupportedDateTime))
1813
if (!
Calendar
.IsLeapYear(year))
1975
if (!LocalAppContextSwitches.EnforceLegacyJapaneseDateParsing &&
Calendar
.ID == CalendarId.JAPAN)
2114
if (
Calendar
.GetType() != typeof(JapaneseCalendar))
2119
for (int i = 1; i <= jaDtfi.
Calendar
.Eras.Length; i++)
2132
for (int i = 1; i <= twDtfi.
Calendar
.Eras.Length; i++)
2280
if (!LocalAppContextSwitches.EnforceLegacyJapaneseDateParsing &&
Calendar
.ID == CalendarId.JAPAN &&
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (6)
842
dtok.num = dtfi.
Calendar
.ToFourDigitYear(tokenValue);
2520
result.calendar = dtfi.
Calendar
;
3696
int[] eras = dtfi.
Calendar
.Eras;
3990
if (dtfi.
Calendar
.GetType() != typeof(GregorianCalendar))
4010
if (LocalAppContextSwitches.EnforceLegacyJapaneseDateParsing || dtfi.
Calendar
.ID != CalendarId.JAPAN || !str.GetNext())
4595
var parseInfo = new ParsingInfo(dtfi.
Calendar
);
System.Security.Cryptography (3)
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (1)
894
validityFormatInfo.
Calendar
.TwoDigitYearMax = 2049;
System\Security\Cryptography\X509Certificates\X509Certificate.cs (2)
741
if (!culture.DateTimeFormat.
Calendar
.IsValidDay(date.Year, date.Month, date.Day, 0))
745
if (culture.DateTimeFormat.
Calendar
is UmAlQuraCalendar)