7 instantiations of GregorianCalendar
mscorlib (4)
system\globalization\cultureinfo.cs (3)
1496return (new GregorianCalendar()); 1512return (new GregorianCalendar((GregorianCalendarTypes)calType)); 1538return (new GregorianCalendar());
system\globalization\gregoriancalendar.cs (1)
121s_defaultInstance = new GregorianCalendar();
PresentationFramework (3)
src\Framework\System\Windows\Controls\DateTimeHelper.cs (2)
16private static System.Globalization.Calendar cal = new GregorianCalendar(); 160dtfi.Calendar = new GregorianCalendar();
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (1)
50private System.Globalization.Calendar _calendar = new GregorianCalendar();
47 references to GregorianCalendar
mscorlib (34)
system\currenttimezone.cs (1)
283Calendar cal = GregorianCalendar.GetDefaultInstance();
system\globalization\CalendricalCalculationsHelper.cs (2)
72return date.Ticks / GregorianCalendar.TicksPerDay; 77return new DateTime(Math.Min((long)(Math.Floor(numberOfDays) * GregorianCalendar.TicksPerDay), DateTime.MaxValue.Ticks)).Year;
system\globalization\datetimeformat.cs (2)
897if (dtfi.Calendar.GetType() != typeof(GregorianCalendar)) { 898dtfi.Calendar = GregorianCalendar.GetDefaultInstance();
system\globalization\datetimeformatinfo.cs (2)
342GregorianCalendar.GetDefaultInstance()) 435calendar = (Calendar) GregorianCalendar.GetDefaultInstance().Clone();
system\globalization\datetimeparse.cs (9)
2830Calendar calendar = GregorianCalendar.GetDefaultInstance(); 3409cal = GregorianCalendar.GetDefaultInstance(); 3455parseInfo.calendar = GregorianCalendar.GetDefaultInstance(); 3460parseInfo.calendar = GregorianCalendar.GetDefaultInstance(); 3469parseInfo.calendar = GregorianCalendar.GetDefaultInstance(); 3472parseInfo.calendar = GregorianCalendar.GetDefaultInstance(); 3480parseInfo.calendar = GregorianCalendar.GetDefaultInstance(); 3484if (dtfi.Calendar.GetType() != typeof(GregorianCalendar)) { 3486dtfi.Calendar = GregorianCalendar.GetDefaultInstance();
system\globalization\eastasianlunisolarcalendar.cs (2)
377return (GregorianCalendar.GetDefaultInstance().ToDateTime(gy,gm,gd,time.Hour,time.Minute,time.Second,time.Millisecond)); 383Calendar Greg = GregorianCalendar.GetDefaultInstance();
system\globalization\gregoriancalendarhelper.cs (1)
637return (GregorianCalendar.GetDefaultInstance().GetWeekOfYear(time, rule, firstDayOfWeek));
system\globalization\hebrewcalendar.cs (2)
571AbsoluteDate = GregorianCalendar.GetAbsoluteDate(gregorianYear, gregorianMonth, gregorianDay); 584NumDays = AbsoluteDate - GregorianCalendar.GetAbsoluteDate(gregorianYear, 1, 1);
system\globalization\hijricalendar.cs (2)
419NumDays = ticks / GregorianCalendar.TicksPerDay + 1; 699return (new DateTime(lDate * GregorianCalendar.TicksPerDay + TimeToTicks(hour, minute, second, millisecond)));
system\globalization\japanesecalendar.cs (2)
125defaultEraRanges[0] = new EraInfo( 4, 1989, 1, 8, 1988, 1, GregorianCalendar.MaxYear - 1988, 241registryEraRanges[0].maxEraYear = GregorianCalendar.MaxYear - registryEraRanges[0].yearOffset;
system\globalization\koreancalendar.cs (1)
47new EraInfo( 1, 1, 1, 1, -2333, 2334, GregorianCalendar.MaxYear + 2333) // era #, start year/month/day, yearOffset, minEraYear
system\globalization\Persiancalendar.cs (3)
33internal static long PersianEpoch = new DateTime(622, 3, 22).Ticks / GregorianCalendar.TicksPerDay; 221NumDays = ticks / GregorianCalendar.TicksPerDay + 1; 521return (new DateTime(lDate * GregorianCalendar.TicksPerDay + TimeToTicks(hour, minute, second, millisecond)));
system\globalization\taiwancalendar.cs (1)
41new EraInfo( 1, 1912, 1, 1, 1911, 1, GregorianCalendar.MaxYear - 1911) // era #, start year/month/day, yearOffset, minEraYear
system\globalization\taiwanlunisolarcalendar.cs (1)
35new EraInfo( 1, 1912, 1, 1, 1911, 1, GregorianCalendar.MaxYear - 1911) // era #, start year/month/day, yearOffset, minEraYear
system\globalization\thaibuddhistcalendar.cs (1)
30new EraInfo( 1, 1, 1, 1, -543, 544, GregorianCalendar.MaxYear + 543) // era #, start year/month/day, yearOffset, minEraYear
system\globalization\umalquracalendar.cs (2)
377return GregorianCalendar.GetAbsoluteDate(yg,mg,dg); 787return (new DateTime(lDate * GregorianCalendar.TicksPerDay + TimeToTicks(hour, minute, second, millisecond)));
PresentationFramework (6)
src\Framework\System\Windows\Controls\DateTimeHelper.cs (6)
127if (culture.Calendar is GregorianCalendar) 133GregorianCalendar foundCal =null; 138if (cal is GregorianCalendar) 144foundCal = cal as GregorianCalendar; 147if (((GregorianCalendar)cal).CalendarType == GregorianCalendarTypes.Localized) 149foundCal = cal as GregorianCalendar;
System.Web (2)
UI\WebControls\basecomparevalidator.cs (2)
231if (!(DateTimeFormatInfo.CurrentInfo.Calendar.GetType() == typeof(GregorianCalendar))) { 454if (Type == ValidationDataType.Date && DateTimeFormatInfo.CurrentInfo.Calendar.GetType() != typeof(GregorianCalendar)) {
System.Web.Extensions (2)
Globalization\ClientCultureInfo.cs (2)
63if (calendarType != typeof(GregorianCalendar)) { 116if (cultureInfo.Equals(enUS) && (calendarType == typeof(GregorianCalendar))) {
System.Web.Mobile (3)
UI\MobileControls\Adapters\ChtmlCalendarAdapter.cs (1)
727typeof(GregorianCalendar))
UI\MobileControls\Adapters\WmlCalendarAdapter.cs (1)
704typeof(GregorianCalendar))
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicCalendarAdapter.cs (1)
648typeof(GregorianCalendar)) {