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) 、Celestial Stem (請參閱 GetCelestialStem) ,以及 (請參閱 GetTerrestrialBranch) 。

注意

如需在.NET Framework中使用 EastAsianLunisolarCalendar 類別和其他行事曆類別的相關資訊,請參閱使用行事曆

一年可以在一年的任何月份之後有閏月,而一個月可以有閏日。 例如,方法會 GetMonth 傳回正整數,指出與指定日期相關聯的月份。 如果一年的第八個月和第九個月之間有閏月,此方法 GetMonth 會傳回 8 代表第八個月、9 代表閏八個月,而第九個月則傳回 10。

每個都 CultureInfo 支援一組行事曆。 目前,衍生自 的任何文化 CultureInfo 特性都未使用任何衍生自 EastAsianLunisolarCalendar 的 lunisolar 行事曆類別。 因此,這個類別和衍生自它的類別只能用來計算東亞月曆中的日期。 這個類別支援數個「get」 方法,以在 lunisolar 行事曆所使用的詞彙中描述 DateTime ,以及 ToDateTime 從 lunisolar 行事歷數據轉換成 DateTime 的方法。

欄位

CurrentEra

表示目前曆法的目前紀元。 此欄位的值為 0。

(繼承來源 Calendar)

屬性

AlgorithmType

取得值,指出目前的月曆是以陽曆為主、以陰曆為主,還是同時包含兩種曆法。

AlgorithmType

取得值,指出目前的月曆是以陽曆為主、以陰曆為主,還是同時包含兩種曆法。

(繼承來源 Calendar)
DaysInYearBeforeMinSupportedYear

取得 MinSupportedDateTime 屬性指定之年的前一年的天數。

(繼承來源 Calendar)
Eras

當在衍生類別中覆寫時,取得目前曆法中的紀元清單。

(繼承來源 Calendar)
IsReadOnly

取得值,指出 Calendar 物件是否為唯讀。

(繼承來源 Calendar)
MaxSupportedDateTime

取得受 Calendar 物件所支援的最晚日期和時間。

(繼承來源 Calendar)
MinSupportedDateTime

取得受 Calendar 物件所支援的最早日期和時間。

(繼承來源 Calendar)
TwoDigitYearMax

取得或設定以二位數年份表示時,該 100 年範圍的最後一年。

方法

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)

傳回目前紀元之指定月份和年份中的天數。

(繼承來源 Calendar)
GetDaysInMonth(Int32, Int32, Int32)

計算指定年份和紀元的指定月份中的天數。

GetDaysInYear(Int32)

傳回目前紀元之指定年份中的天數。

(繼承來源 Calendar)
GetDaysInYear(Int32, Int32)

計算指定年份和紀元中的天數。

GetEra(DateTime)

當在衍生類別中覆寫時,傳回指定 DateTime 的紀元。

(繼承來源 Calendar)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetHour(DateTime)

傳回指定 DateTime 中的小時值。

(繼承來源 Calendar)
GetLeapMonth(Int32)

計算指定年份的閏月。

(繼承來源 Calendar)
GetLeapMonth(Int32, Int32)

計算指定年份和紀元的閏月。

GetMilliseconds(DateTime)

傳回指定 DateTime 中的毫秒值。

(繼承來源 Calendar)
GetMinute(DateTime)

傳回指定 DateTime 中的分鐘值。

(繼承來源 Calendar)
GetMonth(DateTime)

傳回指定日期中的月份。

GetMonthsInYear(Int32)

傳回目前紀元的指定年份中的月數。

(繼承來源 Calendar)
GetMonthsInYear(Int32, Int32)

計算指定年份和紀元中的月數。

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)

判斷目前紀元中指定日期是否為閏日。

(繼承來源 Calendar)
IsLeapDay(Int32, Int32, Int32, Int32)

判斷指定紀元中指定的日期是否為閏日。

IsLeapMonth(Int32, Int32)

判斷目前紀元的指定年份中指定的月份是否為閏月。

(繼承來源 Calendar)
IsLeapMonth(Int32, Int32, Int32)

判斷指定年份和紀元中的指定月份是否為閏月。

IsLeapYear(Int32)

判斷目前紀元中指定的年份是否為閏年。

(繼承來源 Calendar)
IsLeapYear(Int32, Int32)

判斷指定紀元中指定的年份是否為閏年。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32)

傳回設定為目前紀元中指定日期和時間的 DateTime

(繼承來源 Calendar)
ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

傳回 DateTime 物件,其設定為指定日期、時間和紀元。

ToFourDigitYear(Int32)

將指定的年份轉換成 4 位數年份。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於

另請參閱