KoreanLunisolarCalendar 类

定义

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

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

注解

KoreanLunisolarCalendar 类派生自 EastAsianLunisolarCalendar 表示 lunisolar 日历的类。 该 EastAsianLunisolarCalendar 类支持性别年周期 (,除了太阳年和农历月外,每60年重复一次) 。 日历中的每个太阳年都与性别纪念年、天体茎和地面分支相关联,这些日历可以在一年中的任何月之后跨月。

备注

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

KoreanLunisolarCalendar 类使用公历计算年数,并使用 EastAsianLunisolarCalendar 该类计算天数和月数。

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

目前,类 KoreanLunisolarCalendar 支持 CultureInfo 的任何区域性都不会使用该区域性。 因此,此类只能用于计算韩国 lunisolar 日历中的日期。

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

构造函数

KoreanLunisolarCalendar()

初始化 KoreanLunisolarCalendar 类的新实例。

字段

CurrentEra

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

(继承自 Calendar)
GregorianEra

指定对应于当前 KoreanLunisolarCalendar 对象的公历纪元。

属性

AlgorithmType

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

(继承自 EastAsianLunisolarCalendar)
DaysInYearBeforeMinSupportedYear

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

DaysInYearBeforeMinSupportedYear

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

(继承自 Calendar)
Eras

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

IsReadOnly

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

(继承自 Calendar)
MaxSupportedDateTime

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

MinSupportedDateTime

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

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)

适用于

另请参阅