Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

KoreanLunisolarCalendar Class

Note: This class is new in the .NET Framework version 2.0.

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.

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)

[SerializableAttribute] 
public class KoreanLunisolarCalendar : EastAsianLunisolarCalendar
/** @attribute SerializableAttribute() */ 
public class KoreanLunisolarCalendar extends EastAsianLunisolarCalendar
SerializableAttribute 
public class KoreanLunisolarCalendar extends EastAsianLunisolarCalendar

The KoreanLunisolarCalendar class is derived from the EastAsianLunisolarCalendar class, which represents the lunisolar calendar. The EastAsianLunisolarCalendar class supports converting dates between solar and lunisolar calendars, calendars in which the year is associated with an era and repeats in 60-year cycles, and calendars that can have leap months after any month of the year. 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 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, set the Calendar property of CultureInfo.DateTimeFormat to a new Calendar.

System.Object
   System.Globalization.Calendar
     System.Globalization.EastAsianLunisolarCalendar
      System.Globalization.KoreanLunisolarCalendar
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.