语言

EastAsianLunisolarCalendar 类

定义

表示将时间划分为月、天、年和纪元的日历,并具有基于太阳和月亮周期的日期。

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

注解

该 EastAsianLunisolarCalendar 类除了太阳年和农历月外,还支持年(每60年重复一次)的性别循环。 日历中的每个太阳年都与性别纪年(见 GetSexagenaryYear)、天体茎(见 GetCelestialStem)和地面分支(见 GetTerrestrialBranch)相关联。

注释

有关在 .NET Framework 中使用 EastAsianLunisolarCalendar 类和其他日历类的信息,请参阅 “使用日历”。

一年可以在一年中的任何月之后有一个跃点月,一个月可以有一个跃点。 例如,该方法 GetMonth 返回一个正整数,指示与指定日期关联的月份。 如果一年八至九个月之间有一个跃点月,则 GetMonth 该方法返回第八个月为 8,第八个月返回 9,第九个月返回 10。

每个 CultureInfo 支持一组日历。 目前,派生自的任何区域性EastAsianLunisolarCalendar都未使用派生自CultureInfo的 lunisolar 日历类。 因此,此类和派生自它的类只能用于计算东亚隆隆日历中的日期。 此类支持几个“get”方法来描述 DateTime lunisolar 日历使用的术语,以及 ToDateTime 从 lunisolar 日历数据转换为 a DateTime的方法。

字段

名称 说明
CurrentEra

表示当前日历的当前纪元。 此字段的值为 0。

(继承自 Calendar)

属性

名称 说明
AlgorithmType

获取一个值,该值指示当前日历是基于太阳的、基于月球的还是两者的组合。

DaysInYearBeforeMinSupportedYear

获取属性指定的 MinSupportedDateTime 年份之前的年份中的天数。

(继承自 Calendar)
Eras

在派生类中重写时,获取当前日历中的纪元列表。

(继承自 Calendar)
IsReadOnly

获取一个值,该值指示此 Calendar 对象是否为只读。

(继承自 Calendar)
MaxSupportedDateTime

获取此 Calendar 对象支持的最新日期和时间。

(继承自 Calendar)
MinSupportedDateTime

获取此 Calendar 对象支持的最早日期和时间。

(继承自 Calendar)
TwoDigitYearMax

获取或设置一个 100 年范围的上一年,该范围可以由 2 位年份表示。

方法

名称 说明
AddDays(DateTime, Int32)

返回 DateTime 与指定的天数相距的指定 DateTime天数。

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

返回 DateTime 与指定的小时数相距的指定 DateTime小时数。

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

返回 DateTime 与指定时间相距的指定 DateTime毫秒数。

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

返回 DateTime 与指定的分钟数相距的指定 DateTime分钟数。

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

计算与指定日期相距指定月数的日期。

AddSeconds(DateTime, Int32)

返回 DateTime 与指定的秒数相距的指定 DateTime秒数。

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

返回 DateTime 与指定的周数相距的指定 DateTime周数。

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

计算与指定日期相距指定年份的日期。

Clone()

创建一个新对象,该对象是当前 Calendar 对象的副本。

(继承自 Calendar)
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetCelestialStem(Int32)

计算性交(60年)周期中指定年份的天干。

GetDayOfMonth(DateTime)

计算指定日期中的月份日期。

GetDayOfWeek(DateTime)

计算指定日期中的星期几。

GetDayOfYear(DateTime)

计算指定日期中的年份日期。

GetDaysInMonth(Int32, Int32, Int32)

计算指定年份和纪元的指定月份中的天数。

GetDaysInMonth(Int32, Int32)

返回当前纪元的指定月份和年份中的天数。

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

计算指定年份和纪元中的天数。

GetDaysInYear(Int32)

返回当前纪元指定年份中的天数。

(继承自 Calendar)
GetEra(DateTime)

在派生类中重写时,返回指定 DateTime纪元。

(继承自 Calendar)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetHour(DateTime)

返回指定 DateTime中的小时值。

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

计算指定年份和纪元的跃点月。

GetLeapMonth(Int32)

计算指定年份的跃点月。

(继承自 Calendar)
GetMilliseconds(DateTime)

返回指定 DateTime中的毫秒值。

(继承自 Calendar)
GetMinute(DateTime)

返回指定 DateTime中的分钟值。

(继承自 Calendar)
GetMonth(DateTime)

返回指定日期中的月份。

GetMonthsInYear(Int32, Int32)

计算指定年份和纪元中的月数。

GetMonthsInYear(Int32)

返回当前纪元中指定年份的月份数。

(继承自 Calendar)
GetSecond(DateTime)

返回指定 DateTime中的秒值。

(继承自 Calendar)
GetSexagenaryYear(DateTime)

计算与指定日期相对应的性交(60 年)周期中的年份。

GetTerrestrialBranch(Int32)

计算性交(60年)周期中指定年份的地面分支。

GetType()

获取当前实例的 Type。

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

返回包含指定 DateTime 值中的日期的年份的周。

(继承自 Calendar)
GetYear(DateTime)

返回指定日期中的年份。

IsLeapDay(Int32, Int32, Int32, Int32)

确定指定纪元中的指定日期是否为 leap 日。

IsLeapDay(Int32, Int32, Int32)

确定当前纪元中的指定日期是否为跃点。

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

确定指定年份和纪元中的指定月份是否为跃月。

IsLeapMonth(Int32, Int32)

确定当前纪元中指定年份中的指定月份是否为跃月。

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

确定指定纪元中的指定年份是否为跃年。

IsLeapYear(Int32)

确定当前时代的指定年份是否为跃年。

(继承自 Calendar)
MemberwiseClone()

创建当前 Object的浅表副本。

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

返回一个 DateTime 设置为指定的日期、时间和纪元。

ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32)

返回一个 DateTime 设置为当前纪元中的指定日期和时间。

(继承自 Calendar)
ToFourDigitYear(Int32)

将指定的年份转换为四位数的年份。

ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于

另请参阅