ChineseLunisolarCalendar 类

定义

表示时间划分方式,例如“月”、“日”和“年”。 年按农历计算,而日和月按阴阳历计算。

public ref class ChineseLunisolarCalendar : System::Globalization::EastAsianLunisolarCalendar
public class ChineseLunisolarCalendar : System.Globalization.EastAsianLunisolarCalendar
[System.Serializable]
public class ChineseLunisolarCalendar : System.Globalization.EastAsianLunisolarCalendar
type ChineseLunisolarCalendar = class
    inherit EastAsianLunisolarCalendar
[<System.Serializable>]
type ChineseLunisolarCalendar = class
    inherit EastAsianLunisolarCalendar
Public Class ChineseLunisolarCalendar
Inherits EastAsianLunisolarCalendar
继承
ChineseLunisolarCalendar
属性

注解

ChineseLunisolarCalendar 类派生自 EastAsianLunisolarCalendar 表示 lunisolar 日历的类。 该 EastAsianLunisolarCalendar 类支持性感年周期 (,除了太阳年和月球月外,每60年重复一次) 。 日历中的每个太阳年都与一个性感年、天体干和地面分支相关联,这些日历可以在一年中的任何月之后跨越几个月。 该 ChineseLunisolarCalendar 类根据太阳计算计算年数,根据月球计算计算月份和天数计算年数。

备注

有关使用ChineseLunisolarCalendar.NET Framework中的类和其他日历类的信息,请参阅使用日历

在一年内的任何月之后,可以发生一个跃点月。 例如,该方法 GetMonth 返回一个介于 1 和 13 之间的数字,该值指示与指定日期关联的月份。 如果一年八至九个月之间有一个跃月,则 GetMonth 该方法返回第八个月为 8,第八个月返回 9,第九个月返回 10。

目前, ChineseLunisolarCalendar 该类支持 CultureInfo 的任何区域性都不使用该区域性。 因此,此类仅用于计算中文隆隆日历中的日期。

每个 CultureInfo 对象都支持一组日历。 该 Calendar 属性返回区域性的默认日历, OptionalCalendars 该属性返回包含区域性支持的所有日历的数组。 若要更改 a CultureInfo使用的日历,应用程序应将属性CultureInfo.DateTimeFormat设置为CalendarCalendar日历。

构造函数

ChineseLunisolarCalendar()

初始化 ChineseLunisolarCalendar 类的新实例。

字段

ChineseEra

指定对应于当前 ChineseLunisolarCalendar 对象的纪元。

CurrentEra

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

(继承自 Calendar)

属性

AlgorithmType

获取一个值,该值指示当前日历是阳历、阴历还是二者的组合。

(继承自 EastAsianLunisolarCalendar)
DaysInYearBeforeMinSupportedYear

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

DaysInYearBeforeMinSupportedYear

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

(继承自 Calendar)
Eras

获取与当前 ChineseLunisolarCalendar 对象支持的日期和时间范围对应的纪元。

IsReadOnly

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

(继承自 Calendar)
MaxSupportedDateTime

获取 ChineseLunisolarCalendar 类支持的最晚日期和时间。

MinSupportedDateTime

获取 ChineseLunisolarCalendar 类支持的最早日期和时间。

TwoDigitYearMax

获取或设置可以用两位数年份表示的 100 年范围内的最后一年。

(继承自 EastAsianLunisolarCalendar)

方法

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)

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

(继承自 EastAsianLunisolarCalendar)
AddSeconds(DateTime, Int32)

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

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

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

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

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

(继承自 EastAsianLunisolarCalendar)
Clone()

创建表示当前 Calendar 对象副本的新对象。

(继承自 Calendar)
Equals(Object)

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

(继承自 Object)
GetCelestialStem(Int32)

计算甲子(60 年)循环中指定年份的天干。

(继承自 EastAsianLunisolarCalendar)
GetDayOfMonth(DateTime)

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

(继承自 EastAsianLunisolarCalendar)
GetDayOfWeek(DateTime)

计算指定日期中的周中日期。

(继承自 EastAsianLunisolarCalendar)
GetDayOfYear(DateTime)

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

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

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

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

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

(继承自 EastAsianLunisolarCalendar)
GetDaysInYear(Int32)

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

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

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

(继承自 EastAsianLunisolarCalendar)
GetEra(DateTime)

检索对应于指定 DateTime 类型的纪元。

GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetHour(DateTime)

返回指定 DateTime 中的小时值。

(继承自 Calendar)
GetLeapMonth(Int32)

计算指定年份的闰月。

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

计算指定纪元年份的闰月。

(继承自 EastAsianLunisolarCalendar)
GetMilliseconds(DateTime)

返回指定 DateTime 中的毫秒值。

(继承自 Calendar)
GetMinute(DateTime)

返回指定 DateTime 中的分钟值。

(继承自 Calendar)
GetMonth(DateTime)

返回指定日期中的月份。

(继承自 EastAsianLunisolarCalendar)
GetMonthsInYear(Int32)

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

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

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

(继承自 EastAsianLunisolarCalendar)
GetSecond(DateTime)

返回指定 DateTime 中的秒值。

(继承自 Calendar)
GetSexagenaryYear(DateTime)

计算与指定日期对应的甲子(60 年)循环中的年份。

(继承自 EastAsianLunisolarCalendar)
GetTerrestrialBranch(Int32)

计算甲子(60 年)循环中指定年份的地支。

(继承自 EastAsianLunisolarCalendar)
GetType()

获取当前实例的 Type

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

返回一年中包含指定 DateTime 值中的日期的那个星期。

(继承自 Calendar)
GetYear(DateTime)

返回指定日期中的年份。

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

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

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

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

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

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

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

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

(继承自 EastAsianLunisolarCalendar)
IsLeapYear(Int32)

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

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

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

(继承自 EastAsianLunisolarCalendar)
MemberwiseClone()

创建当前 Object 的浅表副本。

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

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

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

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

(继承自 EastAsianLunisolarCalendar)
ToFourDigitYear(Int32)

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

(继承自 EastAsianLunisolarCalendar)
ToString()

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

(继承自 Object)

适用于

另请参阅