using System; namespace System.Globalization { /// Represents time in divisions, such as months, days, and years. Years are calculated using the Gregorian calendar, while days and months are calculated using the lunisolar calendar. // Token: 0x02000191 RID: 401 [Serializable] public class KoreanLunisolarCalendar : EastAsianLunisolarCalendar { /// Initializes a new instance of the class. // Token: 0x0600141A RID: 5146 RVA: 0x0004DA78 File Offset: 0x0004BC78 [MonoTODO] public KoreanLunisolarCalendar() : base(KoreanLunisolarCalendar.era_handler) { } // Token: 0x0600141B RID: 5147 RVA: 0x0004DA88 File Offset: 0x0004BC88 static KoreanLunisolarCalendar() { KoreanLunisolarCalendar.era_handler.appendEra(1, CCFixed.FromDateTime(new DateTime(1, 1, 1))); } /// Gets the eras that correspond to the range of dates and times supported by the current object. /// An array of 32-bit signed integers that specify the relevant eras. The return value for a object is always an array containing one element equal to the value. // Token: 0x17000371 RID: 881 // (get) Token: 0x0600141C RID: 5148 RVA: 0x0004DAE4 File Offset: 0x0004BCE4 public override int[] Eras { get { return (int[])KoreanLunisolarCalendar.era_handler.Eras.Clone(); } } /// Retrieves the era that corresponds to the specified . /// An integer that represents the era specified by the parameter. The return value for a object is always the value. /// The to read. /// /// represents a date and time less than or greater than . // Token: 0x0600141D RID: 5149 RVA: 0x0004DAFC File Offset: 0x0004BCFC public override int GetEra(DateTime time) { int num = CCFixed.FromDateTime(time); int num2; KoreanLunisolarCalendar.era_handler.EraYear(out num2, num); return num2; } /// Gets the minimum date and time supported by the class. /// The earliest date and time supported by the class, which is equivalent to the first moment of February 14, 918 C.E. in the Gregorian calendar. // Token: 0x17000372 RID: 882 // (get) Token: 0x0600141E RID: 5150 RVA: 0x0004DB20 File Offset: 0x0004BD20 public override DateTime MinSupportedDateTime { get { return KoreanLunisolarCalendar.KoreanMin; } } /// Gets the maximum date and time supported by the class. /// The latest date and time supported by the class, which is equivalent to the last moment of February 10, 2051 C.E. in the Gregorian calendar. // Token: 0x17000373 RID: 883 // (get) Token: 0x0600141F RID: 5151 RVA: 0x0004DB28 File Offset: 0x0004BD28 public override DateTime MaxSupportedDateTime { get { return KoreanLunisolarCalendar.KoreanMax; } } /// Specifies the Gregorian era that corresponds to the current object. // Token: 0x0400058A RID: 1418 public const int GregorianEra = 1; // Token: 0x0400058B RID: 1419 internal static readonly CCEastAsianLunisolarEraHandler era_handler = new CCEastAsianLunisolarEraHandler(); // Token: 0x0400058C RID: 1420 private static DateTime KoreanMin = new DateTime(918, 2, 14, 0, 0, 0); // Token: 0x0400058D RID: 1421 private static DateTime KoreanMax = new DateTime(2051, 2, 10, 23, 59, 59); } }