using System; using System.Runtime.InteropServices; using System.Runtime.Serialization; using Cpp2IlInjected; namespace System.Globalization { /// Represents time in divisions, such as weeks, months, and years. // Token: 0x020002C5 RID: 709 [Token(Token = "0x20002C5")] [ComVisible(true)] [Serializable] public abstract class Calendar : ICloneable { /// Gets the earliest date and time supported by this object. /// The earliest date and time supported by this calendar. The default is . // Token: 0x17000319 RID: 793 // (get) Token: 0x06001A20 RID: 6688 RVA: 0x00011310 File Offset: 0x0000F510 [Token(Token = "0x17000319")] [ComVisible(false)] public virtual DateTime MinSupportedDateTime { [Token(Token = "0x6001A20")] [Address(RVA = "0x1E88290", Offset = "0x1E87090", VA = "0x181E88290", Slot = "5")] get { return default(DateTime); } } /// Gets the latest date and time supported by this object. /// The latest date and time supported by this calendar. The default is . // Token: 0x1700031A RID: 794 // (get) Token: 0x06001A21 RID: 6689 RVA: 0x00011328 File Offset: 0x0000F528 [Token(Token = "0x1700031A")] [ComVisible(false)] public virtual DateTime MaxSupportedDateTime { [Token(Token = "0x6001A21")] [Address(RVA = "0x1E88230", Offset = "0x1E87030", VA = "0x181E88230", Slot = "6")] get { return default(DateTime); } } /// Initializes a new instance of the class. // Token: 0x06001A22 RID: 6690 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001A22")] [Address(RVA = "0x1E88010", Offset = "0x1E86E10", VA = "0x181E88010")] protected Calendar() { } // Token: 0x1700031B RID: 795 // (get) Token: 0x06001A23 RID: 6691 RVA: 0x00011340 File Offset: 0x0000F540 [Token(Token = "0x1700031B")] internal virtual int ID { [Token(Token = "0x6001A23")] [Address(RVA = "0x4F9EF0", Offset = "0x4F8CF0", VA = "0x1804F9EF0", Slot = "7")] get { return 0; } } // Token: 0x1700031C RID: 796 // (get) Token: 0x06001A24 RID: 6692 RVA: 0x00011358 File Offset: 0x0000F558 [Token(Token = "0x1700031C")] internal virtual int BaseCalendarID { [Token(Token = "0x6001A24")] [Address(RVA = "0x461C60", Offset = "0x460A60", VA = "0x180461C60", Slot = "8")] get { return 0; } } /// Gets a value indicating whether this object is read-only. /// /// if this object is read-only; otherwise, . // Token: 0x1700031D RID: 797 // (get) Token: 0x06001A25 RID: 6693 RVA: 0x00011370 File Offset: 0x0000F570 [Token(Token = "0x1700031D")] [ComVisible(false)] public bool IsReadOnly { [Token(Token = "0x6001A25")] [Address(RVA = "0x40B710", Offset = "0x40A510", VA = "0x18040B710")] get { return default(bool); } } /// Creates a new object that is a copy of the current object. /// A new instance of that is the memberwise clone of the current object. // Token: 0x06001A26 RID: 6694 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6001A26")] [Address(RVA = "0x1E879E0", Offset = "0x1E867E0", VA = "0x181E879E0", Slot = "9")] [ComVisible(false)] public virtual object Clone() { return null; } /// Returns a read-only version of the specified object. /// A object. /// The object specified by the parameter, if is read-only. /// -or- /// A read-only memberwise clone of the object specified by , if is not read-only. /// /// is . // Token: 0x06001A27 RID: 6695 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6001A27")] [Address(RVA = "0x1E87CC0", Offset = "0x1E86AC0", VA = "0x181E87CC0")] [ComVisible(false)] public static Calendar ReadOnly(Calendar calendar) { return null; } // Token: 0x06001A28 RID: 6696 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001A28")] [Address(RVA = "0x8EBC70", Offset = "0x8EAA70", VA = "0x1808EBC70")] internal void SetReadOnlyState(bool readOnly) { } // Token: 0x1700031E RID: 798 // (get) Token: 0x06001A29 RID: 6697 RVA: 0x00011388 File Offset: 0x0000F588 [Token(Token = "0x1700031E")] internal virtual int CurrentEraValue { [Token(Token = "0x6001A29")] [Address(RVA = "0x1E88030", Offset = "0x1E86E30", VA = "0x181E88030", Slot = "10")] get { return 0; } } /// When overridden in a derived class, returns the day of the month in the specified . /// The to read. /// A positive integer that represents the day of the month in the parameter. // Token: 0x06001A2A RID: 6698 [Token(Token = "0x6001A2A")] [Address(Slot = "11")] public abstract int GetDayOfMonth(DateTime time); /// When overridden in a derived class, returns the day of the week in the specified . /// The to read. /// A value that represents the day of the week in the parameter. // Token: 0x06001A2B RID: 6699 [Token(Token = "0x6001A2B")] [Address(Slot = "12")] public abstract DayOfWeek GetDayOfWeek(DateTime time); /// When overridden in a derived class, returns the number of days in the specified month, year, and era. /// An integer that represents the year. /// A positive integer that represents the month. /// An integer that represents the era. /// The number of days in the specified month in the specified year in the specified era. /// /// is outside the range supported by the calendar. /// -or- /// is outside the range supported by the calendar. /// -or- /// is outside the range supported by the calendar. // Token: 0x06001A2C RID: 6700 [Token(Token = "0x6001A2C")] [Address(Slot = "13")] public abstract int GetDaysInMonth(int year, int month, int era); /// When overridden in a derived class, returns the era in the specified . /// The to read. /// An integer that represents the era in . // Token: 0x06001A2D RID: 6701 [Token(Token = "0x6001A2D")] [Address(Slot = "14")] public abstract int GetEra(DateTime time); /// When overridden in a derived class, gets the list of eras in the current calendar. /// An array of integers that represents the eras in the current calendar. // Token: 0x1700031F RID: 799 // (get) Token: 0x06001A2E RID: 6702 [Token(Token = "0x1700031F")] public abstract int[] Eras { [Token(Token = "0x6001A2E")] [Address(Slot = "15")] get; } /// When overridden in a derived class, returns the month in the specified . /// The to read. /// A positive integer that represents the month in . // Token: 0x06001A2F RID: 6703 [Token(Token = "0x6001A2F")] [Address(Slot = "16")] public abstract int GetMonth(DateTime time); /// When overridden in a derived class, returns the number of months in the specified year in the specified era. /// An integer that represents the year. /// An integer that represents the era. /// The number of months in the specified year in the specified era. /// /// is outside the range supported by the calendar. /// -or- /// is outside the range supported by the calendar. // Token: 0x06001A30 RID: 6704 [Token(Token = "0x6001A30")] [Address(Slot = "17")] public abstract int GetMonthsInYear(int year, int era); /// When overridden in a derived class, returns the year in the specified . /// The to read. /// An integer that represents the year in . // Token: 0x06001A31 RID: 6705 [Token(Token = "0x6001A31")] [Address(Slot = "18")] public abstract int GetYear(DateTime time); /// Determines whether the specified year in the current era is a leap year. /// An integer that represents the year. /// /// if the specified year is a leap year; otherwise, . /// /// is outside the range supported by the calendar. // Token: 0x06001A32 RID: 6706 RVA: 0x000113A0 File Offset: 0x0000F5A0 [Token(Token = "0x6001A32")] [Address(RVA = "0x1E87B00", Offset = "0x1E86900", VA = "0x181E87B00", Slot = "19")] public virtual bool IsLeapYear(int year) { return default(bool); } /// When overridden in a derived class, determines whether the specified year in the specified era is a leap year. /// An integer that represents the year. /// An integer that represents the era. /// /// if the specified year is a leap year; otherwise, . /// /// is outside the range supported by the calendar. /// -or- /// is outside the range supported by the calendar. // Token: 0x06001A33 RID: 6707 [Token(Token = "0x6001A33")] [Address(Slot = "20")] public abstract bool IsLeapYear(int year, int era); /// Returns a that is set to the specified date and time in the current era. /// An integer that represents the year. /// A positive integer that represents the month. /// A positive integer that represents the day. /// An integer from 0 to 23 that represents the hour. /// An integer from 0 to 59 that represents the minute. /// An integer from 0 to 59 that represents the second. /// An integer from 0 to 999 that represents the millisecond. /// The that is set to the specified date and time in the current era. /// /// is outside the range supported by the calendar. /// -or- /// is outside the range supported by the calendar. /// -or- /// is outside the range supported by the calendar. /// -or- /// is less than zero or greater than 23. /// -or- /// is less than zero or greater than 59. /// -or- /// is less than zero or greater than 59. /// -or- /// is less than zero or greater than 999. // Token: 0x06001A34 RID: 6708 RVA: 0x000113B8 File Offset: 0x0000F5B8 [Token(Token = "0x6001A34")] [Address(RVA = "0x1E87DA0", Offset = "0x1E86BA0", VA = "0x181E87DA0", Slot = "21")] public virtual DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond) { return default(DateTime); } /// When overridden in a derived class, returns a that is set to the specified date and time in the specified era. /// An integer that represents the year. /// A positive integer that represents the month. /// A positive integer that represents the day. /// An integer from 0 to 23 that represents the hour. /// An integer from 0 to 59 that represents the minute. /// An integer from 0 to 59 that represents the second. /// An integer from 0 to 999 that represents the millisecond. /// An integer that represents the era. /// The that is set to the specified date and time in the current era. /// /// is outside the range supported by the calendar. /// -or- /// is outside the range supported by the calendar. /// -or- /// is outside the range supported by the calendar. /// -or- /// is less than zero or greater than 23. /// -or- /// is less than zero or greater than 59. /// -or- /// is less than zero or greater than 59. /// -or- /// is less than zero or greater than 999. /// -or- /// is outside the range supported by the calendar. // Token: 0x06001A35 RID: 6709 [Token(Token = "0x6001A35")] [Address(Slot = "22")] public abstract DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era); // Token: 0x06001A36 RID: 6710 RVA: 0x000113D0 File Offset: 0x0000F5D0 [Token(Token = "0x6001A36")] [Address(RVA = "0x1E87F10", Offset = "0x1E86D10", VA = "0x181E87F10", Slot = "23")] internal virtual bool TryToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era, out DateTime result) { return default(bool); } // Token: 0x06001A37 RID: 6711 RVA: 0x000113E8 File Offset: 0x0000F5E8 [Token(Token = "0x6001A37")] [Address(RVA = "0x1E87C30", Offset = "0x1E86A30", VA = "0x181E87C30", Slot = "24")] internal virtual bool IsValidYear(int year, int era) { return default(bool); } // Token: 0x06001A38 RID: 6712 RVA: 0x00011400 File Offset: 0x0000F600 [Token(Token = "0x6001A38")] [Address(RVA = "0x1E87BB0", Offset = "0x1E869B0", VA = "0x181E87BB0", Slot = "25")] internal virtual bool IsValidMonth(int year, int month, int era) { return default(bool); } // Token: 0x06001A39 RID: 6713 RVA: 0x00011418 File Offset: 0x0000F618 [Token(Token = "0x6001A39")] [Address(RVA = "0x1E87B20", Offset = "0x1E86920", VA = "0x181E87B20", Slot = "26")] internal virtual bool IsValidDay(int year, int month, int day, int era) { return default(bool); } /// Gets or sets the last year of a 100-year range that can be represented by a 2-digit year. /// The last year of a 100-year range that can be represented by a 2-digit year. /// The current object is read-only. // Token: 0x17000320 RID: 800 // (get) Token: 0x06001A3A RID: 6714 RVA: 0x00011430 File Offset: 0x0000F630 [Token(Token = "0x17000320")] public virtual int TwoDigitYearMax { [Token(Token = "0x6001A3A")] [Address(RVA = "0x40B720", Offset = "0x40A520", VA = "0x18040B720", Slot = "27")] get { return 0; } } /// Converts the specified year to a four-digit year by using the property to determine the appropriate century. /// A two-digit or four-digit integer that represents the year to convert. /// An integer that contains the four-digit representation of . /// /// is outside the range supported by the calendar. // Token: 0x06001A3B RID: 6715 RVA: 0x00011448 File Offset: 0x0000F648 [Token(Token = "0x6001A3B")] [Address(RVA = "0x1E87E00", Offset = "0x1E86C00", VA = "0x181E87E00", Slot = "28")] public virtual int ToFourDigitYear(int year) { return 0; } // Token: 0x06001A3C RID: 6716 RVA: 0x00011460 File Offset: 0x0000F660 [Token(Token = "0x6001A3C")] [Address(RVA = "0x1E87AB0", Offset = "0x1E868B0", VA = "0x181E87AB0")] internal static int GetSystemTwoDigitYearSetting(int CalID, int defaultYearValue) { return 0; } // Token: 0x04000DDF RID: 3551 [Token(Token = "0x4000DDF")] internal const long TicksPerMillisecond = 10000L; // Token: 0x04000DE0 RID: 3552 [Token(Token = "0x4000DE0")] internal const long TicksPerSecond = 10000000L; // Token: 0x04000DE1 RID: 3553 [Token(Token = "0x4000DE1")] internal const long TicksPerMinute = 600000000L; // Token: 0x04000DE2 RID: 3554 [Token(Token = "0x4000DE2")] internal const long TicksPerHour = 36000000000L; // Token: 0x04000DE3 RID: 3555 [Token(Token = "0x4000DE3")] internal const long TicksPerDay = 864000000000L; // Token: 0x04000DE4 RID: 3556 [Token(Token = "0x4000DE4")] internal const int MillisPerSecond = 1000; // Token: 0x04000DE5 RID: 3557 [Token(Token = "0x4000DE5")] internal const int MillisPerMinute = 60000; // Token: 0x04000DE6 RID: 3558 [Token(Token = "0x4000DE6")] internal const int MillisPerHour = 3600000; // Token: 0x04000DE7 RID: 3559 [Token(Token = "0x4000DE7")] internal const int MillisPerDay = 86400000; // Token: 0x04000DE8 RID: 3560 [Token(Token = "0x4000DE8")] internal const int DaysPerYear = 365; // Token: 0x04000DE9 RID: 3561 [Token(Token = "0x4000DE9")] internal const int DaysPer4Years = 1461; // Token: 0x04000DEA RID: 3562 [Token(Token = "0x4000DEA")] internal const int DaysPer100Years = 36524; // Token: 0x04000DEB RID: 3563 [Token(Token = "0x4000DEB")] internal const int DaysPer400Years = 146097; // Token: 0x04000DEC RID: 3564 [Token(Token = "0x4000DEC")] internal const int DaysTo10000 = 3652059; // Token: 0x04000DED RID: 3565 [Token(Token = "0x4000DED")] internal const long MaxMillis = 315537897600000L; // Token: 0x04000DEE RID: 3566 [Token(Token = "0x4000DEE")] internal const int CAL_GREGORIAN = 1; // Token: 0x04000DEF RID: 3567 [Token(Token = "0x4000DEF")] internal const int CAL_GREGORIAN_US = 2; // Token: 0x04000DF0 RID: 3568 [Token(Token = "0x4000DF0")] internal const int CAL_JAPAN = 3; // Token: 0x04000DF1 RID: 3569 [Token(Token = "0x4000DF1")] internal const int CAL_TAIWAN = 4; // Token: 0x04000DF2 RID: 3570 [Token(Token = "0x4000DF2")] internal const int CAL_KOREA = 5; // Token: 0x04000DF3 RID: 3571 [Token(Token = "0x4000DF3")] internal const int CAL_HIJRI = 6; // Token: 0x04000DF4 RID: 3572 [Token(Token = "0x4000DF4")] internal const int CAL_THAI = 7; // Token: 0x04000DF5 RID: 3573 [Token(Token = "0x4000DF5")] internal const int CAL_HEBREW = 8; // Token: 0x04000DF6 RID: 3574 [Token(Token = "0x4000DF6")] internal const int CAL_GREGORIAN_ME_FRENCH = 9; // Token: 0x04000DF7 RID: 3575 [Token(Token = "0x4000DF7")] internal const int CAL_GREGORIAN_ARABIC = 10; // Token: 0x04000DF8 RID: 3576 [Token(Token = "0x4000DF8")] internal const int CAL_GREGORIAN_XLIT_ENGLISH = 11; // Token: 0x04000DF9 RID: 3577 [Token(Token = "0x4000DF9")] internal const int CAL_GREGORIAN_XLIT_FRENCH = 12; // Token: 0x04000DFA RID: 3578 [Token(Token = "0x4000DFA")] internal const int CAL_JULIAN = 13; // Token: 0x04000DFB RID: 3579 [Token(Token = "0x4000DFB")] internal const int CAL_JAPANESELUNISOLAR = 14; // Token: 0x04000DFC RID: 3580 [Token(Token = "0x4000DFC")] internal const int CAL_CHINESELUNISOLAR = 15; // Token: 0x04000DFD RID: 3581 [Token(Token = "0x4000DFD")] internal const int CAL_SAKA = 16; // Token: 0x04000DFE RID: 3582 [Token(Token = "0x4000DFE")] internal const int CAL_LUNAR_ETO_CHN = 17; // Token: 0x04000DFF RID: 3583 [Token(Token = "0x4000DFF")] internal const int CAL_LUNAR_ETO_KOR = 18; // Token: 0x04000E00 RID: 3584 [Token(Token = "0x4000E00")] internal const int CAL_LUNAR_ETO_ROKUYOU = 19; // Token: 0x04000E01 RID: 3585 [Token(Token = "0x4000E01")] internal const int CAL_KOREANLUNISOLAR = 20; // Token: 0x04000E02 RID: 3586 [Token(Token = "0x4000E02")] internal const int CAL_TAIWANLUNISOLAR = 21; // Token: 0x04000E03 RID: 3587 [Token(Token = "0x4000E03")] internal const int CAL_PERSIAN = 22; // Token: 0x04000E04 RID: 3588 [Token(Token = "0x4000E04")] internal const int CAL_UMALQURA = 23; // Token: 0x04000E05 RID: 3589 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4000E05")] internal int m_currentEraValue; // Token: 0x04000E06 RID: 3590 [global::Cpp2IlInjected.FieldOffset(Offset = "0x14")] [Token(Token = "0x4000E06")] [OptionalField] private bool m_isReadOnly; /// Represents the current era of the current calendar. The value of this field is 0. // Token: 0x04000E07 RID: 3591 [Token(Token = "0x4000E07")] public const int CurrentEra = 0; // Token: 0x04000E08 RID: 3592 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4000E08")] internal int twoDigitYearMax; } }