Assembly: mscorlib (in mscorlib.dll)
[SerializableAttribute] public class TaiwanLunisolarCalendar : EastAsianLunisolarCalendar
/** @attribute SerializableAttribute() */ public class TaiwanLunisolarCalendar extends EastAsianLunisolarCalendar
SerializableAttribute public class TaiwanLunisolarCalendar extends EastAsianLunisolarCalendar
The Taiwan lunisolar calendar works exactly like the Gregorian calendar, except that the year and era are different. The TaiwanLunisolarCalendar class calculates years using the Gregorian calendar, days and months using the EastAsianLunisolarCalendar class, and recognizes only the current era.
The TaiwanLunisolarCalendar 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.
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 TaiwanLunisolarCalendar 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 Taiwan lunisolar calendar.
Each CultureInfo object 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.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.