KoreanLunisolarCalendar
Class
Definition
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.
public class KoreanLunisolarCalendar : System.Globalization.EastAsianLunisolarCalendar
- Inheritance
Inherited Members
System.Globalization.Calendar
System.Globalization.EastAsianLunisolarCalendar
System.Object
Remarks
The KoreanLunisolarCalendar class is derived from the EastAsianLunisolarCalendar class, which represents the lunisolar calendar. The EastAsianLunisolarCalendar class supports the sexagenary year cycle (which repeats every 60 years) in addition to solar years and lunar months. Each solar year in the calendar is associated with a Sexagenary Year, a Celestial Stem, and a Terrestrial Branch, and these calendars can have leap months after any month of the year.
Note
For information about using the KoreanLunisolarCalendar class and the other calendar classes in the .NET Framework, see Working with Calendars.
The KoreanLunisolarCalendar class calculates years using the Gregorian calendar, and days and months using the EastAsianLunisolarCalendar class.
A leap month can occur after any month in a year. For example, the EastAsianLunisolarCalendar.GetMonth(DateTime) method returns a number between 1 and 13 that indicates the month associated with a specified date. If there is a leap month between the eighth and ninth months of the year, the GetMonth method returns 8 for the eighth month, 9 for the leap eighth month, and 10 for the ninth month.
Currently, the KoreanLunisolarCalendar is not used by any of the cultures supported by the CultureInfo class. Therefore, this class can be used only to calculate dates in the Korean lunisolar calendar.
Each CultureInfo supports a set of calendars. The Calendar property returns the default calendar for the culture, and the OptionalCalendars property returns an array containing all the calendars supported by the culture. To change the calendar used by a CultureInfo, the application should set the Calendar property of CultureInfo.DateTimeFormat to a new Calendar.
Constructors
| KoreanLunisolarCalendar() |
Initializes a new instance of the KoreanLunisolarCalendar class. |
Fields
| GregorianEra |
Specifies the Gregorian era that corresponds to the current KoreanLunisolarCalendar object. |
Properties
| DaysInYearBeforeMinSupportedYear |
Gets the number of days in the year that precedes the year specified by the MinSupportedDateTime property. |
| Eras |
Gets the eras that correspond to the range of dates and times supported by the current KoreanLunisolarCalendar object. |
| MaxSupportedDateTime |
Gets the maximum date and time supported by the KoreanLunisolarCalendar class. |
| MinSupportedDateTime |
Gets the minimum date and time supported by the KoreanLunisolarCalendar class. |
Methods
| GetEra(DateTime) |
Retrieves the era that corresponds to the specified DateTime. |