11 types derived from Calendar
mscorlib (11)
system\globalization\eastasianlunisolarcalendar.cs (1)
19
public abstract class EastAsianLunisolarCalendar :
Calendar
{
system\globalization\gregoriancalendar.cs (1)
28
public class GregorianCalendar :
Calendar
system\globalization\hebrewcalendar.cs (1)
68
public class HebrewCalendar :
Calendar
{
system\globalization\hijricalendar.cs (1)
54
public class HijriCalendar :
Calendar
{
system\globalization\japanesecalendar.cs (1)
46
public class JapaneseCalendar :
Calendar
system\globalization\juliancalendar.cs (1)
23
public class JulianCalendar :
Calendar
{
system\globalization\koreancalendar.cs (1)
29
[Serializable] public class KoreanCalendar:
Calendar
{
system\globalization\Persiancalendar.cs (1)
28
public class PersianCalendar :
Calendar
{
system\globalization\taiwancalendar.cs (1)
27
[Serializable] public class TaiwanCalendar:
Calendar
{
system\globalization\thaibuddhistcalendar.cs (1)
26
[Serializable] public class ThaiBuddhistCalendar:
Calendar
{
system\globalization\umalquracalendar.cs (1)
25
public class UmAlQuraCalendar :
Calendar
{
138 references to Calendar
mscorlib (130)
system\currenttimezone.cs (1)
283
Calendar
cal = GregorianCalendar.GetDefaultInstance();
system\datetime.cs (5)
20
using Calendar = System.Globalization.
Calendar
;
188
public DateTime(int year, int month, int day,
Calendar
calendar)
229
public DateTime(int year, int month, int day, int hour, int minute, int second,
Calendar
calendar) {
306
public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond,
Calendar
calendar) {
337
public DateTime(int year, int month, int day, int hour, int minute, int second, int millisecond,
Calendar
calendar, DateTimeKind kind) {
system\datetimeoffset.cs (1)
144
public DateTimeOffset(int year, int month, int day, int hour, int minute, int second, int millisecond,
Calendar
calendar, TimeSpan offset) {
system\globalization\calendar.cs (5)
181
((
Calendar
) o).SetReadOnlyState(false);
194
public static
Calendar
ReadOnly(
Calendar
calendar)
200
Calendar
clonedCalendar = (
Calendar
)(calendar.MemberwiseClone());
system\globalization\calendardata.cs (12)
374
case
Calendar
.CAL_GREGORIAN_US:
377
case
Calendar
.CAL_JAPAN:
380
case
Calendar
.CAL_TAIWAN:
383
case
Calendar
.CAL_KOREA:
386
case
Calendar
.CAL_HIJRI:
387
case
Calendar
.CAL_GREGORIAN_ARABIC:
388
case
Calendar
.CAL_UMALQURA:
391
case
Calendar
.CAL_THAI:
394
case
Calendar
.CAL_HEBREW:
397
case
Calendar
.CAL_GREGORIAN_ME_FRENCH:
400
case
Calendar
.CAL_GREGORIAN_XLIT_ENGLISH:
401
case
Calendar
.CAL_GREGORIAN_XLIT_FRENCH:
system\globalization\culturedata.cs (4)
2332
if (calendarInts[i] ==
Calendar
.CAL_TAIWAN)
2346
calendarInts[1] =
Calendar
.CAL_TAIWAN;
2713
internal
Calendar
DefaultCalendar
2781
if (calendarId ==
Calendar
.CAL_JAPAN && !AppContextSwitches.EnforceLegacyJapaneseDateParsing)
system\globalization\cultureinfo.cs (31)
78
internal
Calendar
calendar;
1494
internal static
Calendar
GetCalendarInstance(int calType) {
1495
if (calType==
Calendar
.CAL_GREGORIAN) {
1503
internal static
Calendar
GetCalendarInstanceRare(int calType) {
1504
Contract.Assert(calType!=
Calendar
.CAL_GREGORIAN, "calType!=Calendar.CAL_GREGORIAN");
1507
case
Calendar
.CAL_GREGORIAN_US: // Gregorian (U.S.) calendar
1508
case
Calendar
.CAL_GREGORIAN_ME_FRENCH: // Gregorian Middle East French calendar
1509
case
Calendar
.CAL_GREGORIAN_ARABIC: // Gregorian Arabic calendar
1510
case
Calendar
.CAL_GREGORIAN_XLIT_ENGLISH: // Gregorian Transliterated English calendar
1511
case
Calendar
.CAL_GREGORIAN_XLIT_FRENCH: // Gregorian Transliterated French calendar
1513
case
Calendar
.CAL_TAIWAN: // Taiwan Era calendar
1515
case
Calendar
.CAL_JAPAN: // Japanese Emperor Era calendar
1517
case
Calendar
.CAL_KOREA: // Korean Tangun Era calendar
1519
case
Calendar
.CAL_THAI: // Thai calendar
1521
case
Calendar
.CAL_HIJRI: // Hijri (Arabic Lunar) calendar
1523
case
Calendar
.CAL_HEBREW: // Hebrew (Lunar) calendar
1525
case
Calendar
.CAL_UMALQURA:
1527
case
Calendar
.CAL_PERSIAN:
1529
case
Calendar
.CAL_CHINESELUNISOLAR:
1531
case
Calendar
.CAL_JAPANESELUNISOLAR:
1533
case
Calendar
.CAL_KOREANLUNISOLAR:
1535
case
Calendar
.CAL_TAIWANLUNISOLAR:
1552
public virtual
Calendar
Calendar {
1554
Contract.Ensures(Contract.Result<
Calendar
>() != null);
1559
Calendar
newObj = this.m_cultureData.DefaultCalendar;
1577
public virtual
Calendar
[] OptionalCalendars {
1579
Contract.Ensures(Contract.Result<
Calendar
[]>() != null);
1585
Calendar
[] cals = new
Calendar
[calID.Length];
1652
ci.calendar = (
Calendar
) calendar.Clone();
1696
newInfo.calendar =
Calendar
.ReadOnly(ci.calendar);
system\globalization\datetimeformat.cs (14)
437
Calendar
cal = dtfi.Calendar;
441
bool isHebrewCalendar = (cal.ID ==
Calendar
.CAL_HEBREW);
442
bool isJapaneseCalendar = (cal.ID ==
Calendar
.CAL_JAPAN);
483
long fraction = (dateTime.Ticks %
Calendar
.TicksPerSecond);
621
else if (cal.ID ==
Calendar
.CAL_HEBREW) {
723
if (timeOnly && dateTime.Ticks <
Calendar
.TicksPerDay) {
917
if (dateTime.Ticks <
Calendar
.TicksPerDay) {
932
case
Calendar
.CAL_JAPAN:
933
case
Calendar
.CAL_TAIWAN:
934
case
Calendar
.CAL_HIJRI:
935
case
Calendar
.CAL_HEBREW:
936
case
Calendar
.CAL_JULIAN:
937
case
Calendar
.CAL_UMALQURA:
938
case
Calendar
.CAL_PERSIAN:
system\globalization\datetimeformatinfo.cs (13)
121
internal
Calendar
calendar = null;
346
internal DateTimeFormatInfo(CultureData cultureData,
Calendar
cal)
435
calendar = (
Calendar
) GregorianCalendar.GetDefaultInstance().Clone();
567
n.calendar = (
Calendar
) this.Calendar.Clone();
606
public
Calendar
Calendar {
608
Contract.Ensures(Contract.Result<
Calendar
>() != null);
799
if (era ==
Calendar
.CurrentEra) {
831
if (era ==
Calendar
.CurrentEra) {
2000
newInfo.calendar =
Calendar
.ReadOnly(dtfi.Calendar);
2276
case (
Calendar
.CAL_JAPAN):
2277
case (
Calendar
.CAL_TAIWAN):
2465
if (!AppContextSwitches.EnforceLegacyJapaneseDateParsing && Calendar.ID ==
Calendar
.CAL_JAPAN)
2754
if (!AppContextSwitches.EnforceLegacyJapaneseDateParsing && Calendar.ID ==
Calendar
.CAL_JAPAN &&
system\globalization\datetimeparse.cs (14)
2369
result.era =
Calendar
.CurrentEra;
2529
time = time.AddTicks((long)Math.Round(raw.fraction *
Calendar
.TicksPerSecond));
2691
resultTicks +=
Calendar
.TicksPerDay;
2714
if (resultTicks <
Calendar
.TicksPerDay) {
2725
resultTicks +=
Calendar
.TicksPerDay;
2830
Calendar
calendar = GregorianCalendar.GetDefaultInstance();
2837
time = time.AddTicks((long)Math.Round(partSecond *
Calendar
.TicksPerSecond));
3360
private static bool CheckDefaultDateTime(ref DateTimeResult result, ref
Calendar
cal, DateTimeStyles styles) {
3438
if (result.era == -1) result.era =
Calendar
.CurrentEra;
3503
if (AppContextSwitches.EnforceLegacyJapaneseDateParsing || dtfi.Calendar.ID !=
Calendar
.CAL_JAPAN || !str.GetNext())
4038
if (parseInfo.calendar.ID ==
Calendar
.CAL_HEBREW) {
4152
result.parsedDate = result.parsedDate.AddTicks((long)Math.Round(result.fraction *
Calendar
.TicksPerSecond));
5006
internal
Calendar
calendar;
5050
internal
Calendar
calendar;
system\globalization\eastasianlunisolarcalendar.cs (5)
112
if (era ==
Calendar
.CurrentEra) {
135
if (era ==
Calendar
.CurrentEra) {
167
if (era ==
Calendar
.CurrentEra) {
383
Calendar
Greg = GregorianCalendar.GetDefaultInstance();
545
return ((DayOfWeek)((int)(time.Ticks /
Calendar
.TicksPerDay + 1) % 7));
system\globalization\gregoriancalendar.cs (3)
60
private static volatile
Calendar
s_defaultInstance;
119
internal static
Calendar
GetDefaultInstance() {
320
Calendar
.CheckAddResult(ticks, MinSupportedDateTime, MaxSupportedDateTime);
system\globalization\gregoriancalendarhelper.cs (4)
121
internal
Calendar
m_Cal;
135
internal GregorianCalendarHelper(
Calendar
cal, EraInfo[] eraInfo) {
163
if (era ==
Calendar
.CurrentEra)
419
Calendar
.CheckAddResult(ticks, m_Cal.MinSupportedDateTime, m_Cal.MaxSupportedDateTime);
system\globalization\gregoriancalendartypes.cs (6)
12
Localized =
Calendar
.CAL_GREGORIAN,
13
USEnglish =
Calendar
.CAL_GREGORIAN_US,
14
MiddleEastFrench =
Calendar
.CAL_GREGORIAN_ME_FRENCH,
15
Arabic =
Calendar
.CAL_GREGORIAN_ARABIC,
16
TransliteratedEnglish =
Calendar
.CAL_GREGORIAN_XLIT_ENGLISH,
17
TransliteratedFrench =
Calendar
.CAL_GREGORIAN_XLIT_FRENCH,
system\globalization\hebrewcalendar.cs (3)
729
CheckHebrewYearValue(y,
Calendar
.CurrentEra, "years");
742
Calendar
.CheckAddResult(ticks, MinSupportedDateTime, MaxSupportedDateTime);
884
} else if (IsLeapYear(year,
Calendar
.CurrentEra)) {
system\globalization\hijricalendar.cs (1)
528
Calendar
.CheckAddResult(ticks, MinSupportedDateTime, MaxSupportedDateTime);
system\globalization\japanesecalendar.cs (2)
333
internal static volatile
Calendar
s_defaultInstance;
344
internal static
Calendar
GetDefaultInstance() {
system\globalization\juliancalendar.cs (1)
261
Calendar
.CheckAddResult(ticks, MinSupportedDateTime, MaxSupportedDateTime);
system\globalization\Persiancalendar.cs (1)
319
Calendar
.CheckAddResult(ticks, MinSupportedDateTime, MaxSupportedDateTime);
system\globalization\taiwancalendar.cs (2)
44
internal static volatile
Calendar
s_defaultInstance;
56
internal static
Calendar
GetDefaultInstance() {
system\globalization\umalquracalendar.cs (2)
437
index = (int)((time.Ticks - minDate.Ticks) /
Calendar
.TicksPerDay) / 355;
561
Calendar
.CheckAddResult(dt.Ticks, MinSupportedDateTime, MaxSupportedDateTime);
PresentationFramework (3)
src\Framework\System\Windows\Controls\DateTimeHelper.cs (2)
16
private static System.Globalization.
Calendar
cal = new GregorianCalendar();
136
foreach (System.Globalization.
Calendar
cal in culture.OptionalCalendars)
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (1)
50
private System.Globalization.
Calendar
_calendar = new GregorianCalendar();
System.Web (1)
UI\WebControls\Calendar.cs (1)
59
private System.Globalization.
Calendar
threadCalendar;
System.Web.Extensions (1)
Globalization\ClientCultureInfo.cs (1)
36
var
calendar = dateTimeFormat == null ? null : dateTimeFormat.Calendar;
System.Web.Mobile (3)
UI\MobileControls\Adapters\ChtmlCalendarAdapter.cs (1)
62
private System.Globalization.
Calendar
_threadCalendar;
UI\MobileControls\Adapters\WmlCalendarAdapter.cs (1)
60
private System.Globalization.
Calendar
_threadCalendar;
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicCalendarAdapter.cs (1)
52
private System.Globalization.
Calendar
_threadCalendar;