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