8 writes to Calendar
mscorlib (6)
system\globalization\datetimeformat.cs (1)
898
dtfi.
Calendar
= GregorianCalendar.GetDefaultInstance();
system\globalization\datetimeformatinfo.cs (3)
355
this.
Calendar
= cal;
2389
temp.
Calendar
= JapaneseCalendar.GetDefaultInstance();
2406
temp.
Calendar
= TaiwanCalendar.GetDefaultInstance();
system\globalization\datetimeparse.cs (1)
3486
dtfi.
Calendar
= GregorianCalendar.GetDefaultInstance();
system\security\cryptography\x509certificates\x509certificate.cs (1)
465
culture.DateTimeFormat.
Calendar
= new HijriCalendar();
PresentationFramework (2)
src\Framework\System\Windows\Controls\DateTimeHelper.cs (2)
160
dtfi.
Calendar
= new GregorianCalendar();
165
dtfi.
Calendar
= foundCal;
86 references to Calendar
mscorlib (51)
system\globalization\datetimeformat.cs (5)
281
if (dtfi.
Calendar
.IsLeapYear(dtfi.
Calendar
.GetYear(time))) {
437
Calendar cal = dtfi.
Calendar
;
897
if (dtfi.
Calendar
.GetType() != typeof(GregorianCalendar)) {
931
switch (dtfi.
Calendar
.ID) {
system\globalization\datetimeformatinfo.cs (38)
252
this.abbreviatedDayNames = this.m_cultureData.AbbreviatedDayNames(
Calendar
.ID);
275
this.m_superShortDayNames = this.m_cultureData.SuperShortDayNames(
Calendar
.ID);
292
this.dayNames = this.m_cultureData.DayNames(
Calendar
.ID);
309
this.abbreviatedMonthNames = this.m_cultureData.AbbreviatedMonthNames(
Calendar
.ID);
328
this.monthNames = this.m_cultureData.MonthNames(
Calendar
.ID);
505
info.
Calendar
.SetReadOnlyState(true);
567
n.calendar = (Calendar) this.
Calendar
.Clone();
782
this.m_eraNames = this.m_cultureData.EraNames(
Calendar
.ID);;
800
era =
Calendar
.CurrentEraValue;
818
this.m_abbrevEraNames = this.m_cultureData.AbbrevEraNames(
Calendar
.ID);
832
era =
Calendar
.CurrentEraValue;
846
Contract.Assert(
Calendar
.ID > 0, "[DateTimeFormatInfo.AbbreviatedEnglishEraNames] Expected Calendar.ID > 0");
847
this.m_abbrevEnglishEraNames = this.m_cultureData.AbbreviatedEnglishEraNames(
Calendar
.ID);
1056
Contract.Assert(
Calendar
.ID > 0, "[DateTimeFormatInfo.MonthDayPattern] Expected calID > 0");
1057
this.monthDayPattern = this.m_cultureData.MonthDay(
Calendar
.ID);
1587
this.m_genitiveAbbreviatedMonthNames = this.m_cultureData.AbbreviatedGenitiveMonthNames(this.
Calendar
.ID);
1596
this.genitiveMonthNames = this.m_cultureData.GenitiveMonthNames(this.
Calendar
.ID);
1613
Contract.Assert(
Calendar
.ID > 0, "[DateTimeFormatInfo.internalGetLeapYearMonthNames] Expected Calendar.ID > 0");
1614
this.leapYearMonthNames = this.m_cultureData.LeapYearMonthNames(
Calendar
.ID);
1907
Contract.Assert(
Calendar
.ID > 0, "[DateTimeFormatInfo.UnclonedYearMonthPatterns] Expected Calendar.ID > 0");
1908
this.allYearMonthPatterns = this.m_cultureData.YearMonths(this.
Calendar
.ID);
1926
Contract.Assert(
Calendar
.ID > 0, "[DateTimeFormatInfo.UnclonedShortDatePatterns] Expected Calendar.ID > 0");
1927
this.allShortDatePatterns = this.m_cultureData.ShortDates(this.
Calendar
.ID);
1944
Contract.Assert(
Calendar
.ID > 0, "[DateTimeFormatInfo.UnclonedLongDatePatterns] Expected Calendar.ID > 0");
1945
this.allLongDatePatterns = this.m_cultureData.LongDates(this.
Calendar
.ID);
2000
newInfo.calendar = Calendar.ReadOnly(dtfi.
Calendar
);
2023
return m_cultureData.CalendarName(
Calendar
.ID);
2258
formatFlags |= (DateTimeFormatFlags)DateTimeFormatInfoScanner.GetFormatFlagUseHebrewCalendar((int)
Calendar
.ID);
2308
if (year <
Calendar
.GetYear(
Calendar
.MinSupportedDateTime) || year >
Calendar
.GetYear(
Calendar
.MaxSupportedDateTime)) {
2316
if (!
Calendar
.IsLeapYear(year)) {
2465
if (!AppContextSwitches.EnforceLegacyJapaneseDateParsing &&
Calendar
.ID == Calendar.CAL_JAPAN)
2597
if (this.
Calendar
.GetType() != typeof(JapaneseCalendar)) {
2601
for (int i = 1; i <= jaDtfi.
Calendar
.Eras.Length; i++) {
2612
for (int i = 1; i <= twDtfi.
Calendar
.Eras.Length; i++) {
2754
if (!AppContextSwitches.EnforceLegacyJapaneseDateParsing &&
Calendar
.ID == Calendar.CAL_JAPAN &&
system\globalization\datetimeparse.cs (6)
834
dtok.num = dtfi.
Calendar
.ToFourDigitYear(tokenValue);
2368
result.calendar = dtfi.
Calendar
;
3227
int[] eras = dtfi.
Calendar
.Eras;
3484
if (dtfi.
Calendar
.GetType() != typeof(GregorianCalendar)) {
3503
if (AppContextSwitches.EnforceLegacyJapaneseDateParsing || dtfi.
Calendar
.ID != Calendar.CAL_JAPAN || !str.GetNext())
4019
parseInfo.calendar = dtfi.
Calendar
;
system\security\cryptography\x509certificates\x509certificate.cs (2)
460
if (!culture.DateTimeFormat.
Calendar
.IsValidDay(date.Year, date.Month, date.Day, 0)) {
463
if (culture.DateTimeFormat.
Calendar
is UmAlQuraCalendar) {
System.Web (6)
UI\WebControls\basecomparevalidator.cs (4)
175
return DateTimeFormatInfo.CurrentInfo.
Calendar
.TwoDigitYearMax;
185
return DateTimeFormatInfo.CurrentInfo.
Calendar
.ToFourDigitYear(shortYear);
231
if (!(DateTimeFormatInfo.CurrentInfo.
Calendar
.GetType() == typeof(GregorianCalendar))) {
454
if (Type == ValidationDataType.Date && DateTimeFormatInfo.CurrentInfo.
Calendar
.GetType() != typeof(GregorianCalendar)) {
UI\WebControls\Calendar.cs (2)
1177
VisibleDate = DateTimeFormatInfo.CurrentInfo.
Calendar
.AddDays(VisibleDate, 1);
1224
threadCalendar = DateTimeFormatInfo.CurrentInfo.
Calendar
;
System.Web.Extensions (2)
Globalization\ClientCultureInfo.cs (2)
36
var calendar = dateTimeFormat == null ? null : dateTimeFormat.
Calendar
;
115
Type calendarType = cultureInfo.DateTimeFormat == null ? null : cultureInfo.DateTimeFormat.
Calendar
.GetType();
System.Web.Mobile (27)
UI\MobileControls\Adapters\ChtmlCalendarAdapter.cs (9)
287
int [] ints = currentInfo.
Calendar
.Eras;
302
currentInfo.
Calendar
.GetEra(Control.VisibleDate);
344
_threadCalendar = currentDateTimeInfo.
Calendar
;
611
eraIndex < currentInfo.
Calendar
.Eras.Length)
613
dateText += currentInfo.GetEraName(currentInfo.
Calendar
.Eras[eraIndex]);
726
if (DateTimeFormatInfo.CurrentInfo.
Calendar
.GetType() ==
843
_threadCalendar = DateTimeFormatInfo.CurrentInfo.
Calendar
;
889
_threadCalendar = DateTimeFormatInfo.CurrentInfo.
Calendar
;
911
_threadCalendar = DateTimeFormatInfo.CurrentInfo.
Calendar
;
UI\MobileControls\Adapters\WmlCalendarAdapter.cs (9)
270
int [] ints = currentInfo.
Calendar
.Eras;
285
currentInfo.
Calendar
.GetEra(Control.VisibleDate);
327
_threadCalendar = currentDateTimeInfo.
Calendar
;
588
eraIndex < currentInfo.
Calendar
.Eras.Length)
590
dateText += currentInfo.GetEraName(currentInfo.
Calendar
.Eras[eraIndex]);
703
if (DateTimeFormatInfo.CurrentInfo.
Calendar
.GetType() ==
815
_threadCalendar = DateTimeFormatInfo.CurrentInfo.
Calendar
;
861
_threadCalendar = DateTimeFormatInfo.CurrentInfo.
Calendar
;
883
_threadCalendar = DateTimeFormatInfo.CurrentInfo.
Calendar
;
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicCalendarAdapter.cs (9)
246
int [] ints = currentInfo.
Calendar
.Eras;
258
currentInfo.
Calendar
.GetEra(Control.VisibleDate);
295
_threadCalendar = currentDateTimeInfo.
Calendar
;
544
eraIndex < currentInfo.
Calendar
.Eras.Length) {
546
dateText += currentInfo.GetEraName(currentInfo.
Calendar
.Eras[eraIndex]);
647
if (DateTimeFormatInfo.CurrentInfo.
Calendar
.GetType() ==
749
_threadCalendar = DateTimeFormatInfo.CurrentInfo.
Calendar
;
789
_threadCalendar = DateTimeFormatInfo.CurrentInfo.
Calendar
;
808
_threadCalendar = DateTimeFormatInfo.CurrentInfo.
Calendar
;