EastAsianLunisolarCalendar 类

定义

表示一种日历,它将时间分为月、日、年和纪元,并且其日期基于太阳和月亮的循环。Represents a calendar that divides time into months, days, years, and eras, and has dates that are based on cycles of the sun and the moon.

public ref class EastAsianLunisolarCalendar abstract : System::Globalization::Calendar
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public abstract class EastAsianLunisolarCalendar : System.Globalization.Calendar
type EastAsianLunisolarCalendar = class
    inherit Calendar
Public MustInherit Class EastAsianLunisolarCalendar
Inherits Calendar
继承
EastAsianLunisolarCalendar
派生
属性

注解

除了阳历年和农历月以外,类还支持年的甲子循环(每隔60年重复一次)。EastAsianLunisolarCalendarThe EastAsianLunisolarCalendar class supports the sexagenary cycle of years (which repeats every 60 years) in addition to solar years and lunar months. 日历中的每个阳历年都与甲子年 (请参见GetSexagenaryYear)、天体茎 (请GetCelestialStem参阅) 和陆地分支 (请GetTerrestrialBranch参阅) 相关联。Each solar year in the calendar is associated with a Sexagenary Year (see GetSexagenaryYear), a Celestial Stem (see GetCelestialStem), and a Terrestrial Branch (see GetTerrestrialBranch).

备注

有关使用 .NET Framework 中的EastAsianLunisolarCalendar类和其他 calendar 类的信息, 请参阅使用日历For information about using the EastAsianLunisolarCalendar class and the other calendar classes in the .NET Framework, see Working with Calendars.

一年中的任何月份后可以有闰月, 月份可以有闰日。A year can have a leap month after any month of the year, and a month can have a leap day. 例如, GetMonth方法返回一个正整数, 该整数指示与指定日期关联的月份。For example, the GetMonth method returns a positive integer that indicates the month associated with a specified date. 如果一年的第八个月和第九个月之间有一个闰月GetMonth , 则该方法将为第八个月返回 8, 为第八个月返回 9, 在第9个月返回10个月。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.

CultureInfo个都支持一组日历。Each CultureInfo supports a set of calendars. 目前, 派生自EastAsianLunisolarCalendar的任何阴阳历类都不由CultureInfo类支持的任何区域性使用。Currently, none of the lunisolar calendar classes that derive from EastAsianLunisolarCalendar is used by any of the cultures supported by the CultureInfo class. 因此, 此类和派生自该类的类只能用于计算东亚阴阳历日历中的日期。Therefore, this class and those that derive from it can be used only to calculate dates in the East Asian lunisolar calendars. 此类支持多个 "get" 方法来描述DateTime阴阳历所用术语中的, ToDateTime并使用方法从DateTime阴阳历数据转换为。This class supports several "get" methods to describe a DateTime in the terms used by lunisolar calendars, and the ToDateTime method to convert from lunisolar calendar data to a DateTime.

字段

CurrentEra

表示当前日历的当前纪元。Represents the current era of the current calendar. 字段的值为 0。The value of this field is 0.

(继承自 Calendar)

属性

AlgorithmType

获取一个值,该值指示当前日历是阳历、阴历还是二者的组合。Gets a value indicating whether the current calendar is solar-based, lunar-based, or a combination of both.

DaysInYearBeforeMinSupportedYear

获取 MinSupportedDateTime 属性指定的年份之前的年中天数。Gets the number of days in the year that precedes the year that is specified by the MinSupportedDateTime property.

(继承自 Calendar)
Eras

当在派生类中重写时,获取当前日历中的纪元列表。When overridden in a derived class, gets the list of eras in the current calendar.

(继承自 Calendar)
IsReadOnly

获取一个值,该值指示此 Calendar 对象是否为只读。Gets a value indicating whether this Calendar object is read-only.

(继承自 Calendar)
MaxSupportedDateTime

获取此 Calendar 对象支持的最晚日期和时间。Gets the latest date and time supported by this Calendar object.

(继承自 Calendar)
MinSupportedDateTime

获取此 Calendar 对象支持的最早日期和时间。Gets the earliest date and time supported by this Calendar object.

(继承自 Calendar)
TwoDigitYearMax

获取或设置可以用两位数年份表示的 100 年范围内的最后一年。Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.

方法

AddDays(DateTime, Int32)

返回与指定 DateTime 相距指定天数的 DateTimeReturns a DateTime that is the specified number of days away from the specified DateTime.

(继承自 Calendar)
AddHours(DateTime, Int32)

返回与指定 DateTime 相距指定小时数的 DateTimeReturns a DateTime that is the specified number of hours away from the specified DateTime.

(继承自 Calendar)
AddMilliseconds(DateTime, Double)

返回与指定 DateTime 相距指定毫秒数的 DateTimeReturns a DateTime that is the specified number of milliseconds away from the specified DateTime.

(继承自 Calendar)
AddMinutes(DateTime, Int32)

返回与指定 DateTime 相距指定分钟数的 DateTimeReturns a DateTime that is the specified number of minutes away from the specified DateTime.

(继承自 Calendar)
AddMonths(DateTime, Int32)

计算与指定日期相距指定月数的日期。Calculates the date that is the specified number of months away from the specified date.

AddSeconds(DateTime, Int32)

返回与指定 DateTime 相距指定秒数的 DateTimeReturns a DateTime that is the specified number of seconds away from the specified DateTime.

(继承自 Calendar)
AddWeeks(DateTime, Int32)

返回与指定 DateTime 相距指定周数的 DateTimeReturns a DateTime that is the specified number of weeks away from the specified DateTime.

(继承自 Calendar)
AddYears(DateTime, Int32)

计算与指定日期相距指定年数的日期。Calculates the date that is the specified number of years away from the specified date.

Clone()

创建表示当前 Calendar 对象副本的新对象。Creates a new object that is a copy of the current Calendar object.

(继承自 Calendar)
Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetCelestialStem(Int32)

计算甲子(60 年)循环中指定年份的天干。Calculates the celestial stem of the specified year in the sexagenary (60-year) cycle.

GetDayOfMonth(DateTime)

计算指定日期中的月中日期。Calculates the day of the month in the specified date.

GetDayOfWeek(DateTime)

计算指定日期中的周中日期。Calculates the day of the week in the specified date.

GetDayOfYear(DateTime)

计算指定日期中的年中日期。Calculates the day of the year in the specified date.

GetDaysInMonth(Int32, Int32)

返回当前纪元的指定月份和年份中的天数。Returns the number of days in the specified month and year of the current era.

(继承自 Calendar)
GetDaysInMonth(Int32, Int32, Int32)

计算指定纪元年份的指定月份中的天数。Calculates the number of days in the specified month of the specified year and era.

GetDaysInYear(Int32)

返回当前纪元中指定年份的天数。Returns the number of days in the specified year of the current era.

(继承自 Calendar)
GetDaysInYear(Int32, Int32)

计算指定纪元年份中的天数。Calculates the number of days in the specified year and era.

GetEra(DateTime)

当在派生类中重写时,将返回指定 DateTime 中的纪元。When overridden in a derived class, returns the era of the specified DateTime.

(继承自 Calendar)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetHour(DateTime)

返回指定 DateTime 中的小时值。Returns the hours value in the specified DateTime.

(继承自 Calendar)
GetLeapMonth(Int32)

计算指定年份的闰月。Calculates the leap month for a specified year.

(继承自 Calendar)
GetLeapMonth(Int32, Int32)

计算指定纪元年份的闰月。Calculates the leap month for the specified year and era.

GetMilliseconds(DateTime)

返回指定 DateTime 中的毫秒值。Returns the milliseconds value in the specified DateTime.

(继承自 Calendar)
GetMinute(DateTime)

返回指定 DateTime 中的分钟值。Returns the minutes value in the specified DateTime.

(继承自 Calendar)
GetMonth(DateTime)

返回指定日期中的月份。Returns the month in the specified date.

GetMonthsInYear(Int32)

返回当前纪元中指定年份的月数。Returns the number of months in the specified year in the current era.

(继承自 Calendar)
GetMonthsInYear(Int32, Int32)

计算指定纪元年份中的月数。Calculates the number of months in the specified year and era.

GetSecond(DateTime)

返回指定 DateTime 中的秒值。Returns the seconds value in the specified DateTime.

(继承自 Calendar)
GetSexagenaryYear(DateTime)

计算与指定日期对应的甲子(60 年)循环中的年份。Calculates the year in the sexagenary (60-year) cycle that corresponds to the specified date.

GetTerrestrialBranch(Int32)

计算甲子(60 年)循环中指定年份的地支。Calculates the terrestrial branch of the specified year in the sexagenary (60-year) cycle.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
GetWeekOfYear(DateTime, CalendarWeekRule, DayOfWeek)

返回一年中包含指定 DateTime 值中的日期的那个星期。Returns the week of the year that includes the date in the specified DateTime value.

(继承自 Calendar)
GetYear(DateTime)

返回指定日期中的年份。Returns the year in the specified date.

IsLeapDay(Int32, Int32, Int32)

确定当前纪元中的指定日期是否为闰日。Determines whether the specified date in the current era is a leap day.

(继承自 Calendar)
IsLeapDay(Int32, Int32, Int32, Int32)

确定指定纪元中的指定日期是否为闰日。Determines whether the specified date in the specified era is a leap day.

IsLeapMonth(Int32, Int32)

确定当前纪元中指定年份的指定月份是否为闰月。Determines whether the specified month in the specified year in the current era is a leap month.

(继承自 Calendar)
IsLeapMonth(Int32, Int32, Int32)

确定指定纪元年份中的指定月份是否为闰月。Determines whether the specified month in the specified year and era is a leap month.

IsLeapYear(Int32)

确定当前纪元中的指定年份是否为闰年。Determines whether the specified year in the current era is a leap year.

(继承自 Calendar)
IsLeapYear(Int32, Int32)

确定指定纪元中的指定年份是否为闰年。Determines whether the specified year in the specified era is a leap year.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32)

返回设置为当前纪元中指定日期和时间的 DateTimeReturns a DateTime that is set to the specified date and time in the current era.

(继承自 Calendar)
ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

返回设置为指定的日期、时间和纪元的 DateTimeReturns a DateTime that is set to the specified date, time, and era.

ToFourDigitYear(Int32)

将指定的年份转换为四位数的年份。Converts the specified year to a four-digit year.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅