Click to Rate and Give Feedback
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
JapaneseLunisolarCalendar Class

Updated: November 2007

Represents time in divisions, such as months, days, and years. Years are calculated as for the Japanese calendar, while days and months are calculated using the lunisolar calendar.

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

Visual Basic (Declaration)
<SerializableAttribute> _
Public Class JapaneseLunisolarCalendar _
    Inherits EastAsianLunisolarCalendar
Visual Basic (Usage)
Dim instance As JapaneseLunisolarCalendar
C#
[SerializableAttribute]
public class JapaneseLunisolarCalendar : EastAsianLunisolarCalendar
Visual C++
[SerializableAttribute]
public ref class JapaneseLunisolarCalendar : public EastAsianLunisolarCalendar
J#
/** @attribute SerializableAttribute */ 
public class JapaneseLunisolarCalendar extends EastAsianLunisolarCalendar
JScript
public class JapaneseLunisolarCalendar extends EastAsianLunisolarCalendar

The JapaneseLunisolarCalendar 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.

For example, the 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 JapaneseLunisolarCalendar 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 Japanese 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.

System..::.Object
  System.Globalization..::.Calendar
    System.Globalization..::.EastAsianLunisolarCalendar
      System.Globalization..::.JapaneseLunisolarCalendar
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 Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

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

.NET Framework

Supported in: 3.5, 3.0, 2.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker