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