转自: http://dotnet.ysoho.com/Members-System.Globalization.ChineseLunisolarCalendar.aspx
System.Globalization.ChineseLunisolarCalendar 的 46个方法、6个属性、1个字段和1个构造函数
将时间分成多个部分来表示,如分成年、月和日。年按农历计算,而日和月按阴阳历计算。
ChineseLunisolarCalendar的构造函数
- ChineseLunisolarCalendar
Initializes a new instance of theChineseLunisolarCalendar class.
ChineseLunisolarCalendar的方法
- AddDays
返回与指定DateTime 相距指定天数的DateTime。(继承自Calendar。)
- AddHours
返回与指定DateTime 相距指定小时数的DateTime。(继承自Calendar。)
- AddMilliseconds
返回与指定DateTime 相距指定毫秒数的DateTime。(继承自Calendar。)
- AddMinutes
返回与指定的DateTime 相距指定分钟数的DateTime。(继承自Calendar。)
- AddMonths
计算与指定日期相距指定月数的日期。 (继承自EastAsianLunisolarCalendar。)
- AddSeconds
返回与指定DateTime 相距指定秒数的DateTime。(继承自Calendar。)
- AddWeeks
返回与指定DateTime 相距指定周数的DateTime。(继承自Calendar。)
- AddYears
计算与指定日期相距指定年数的日期。 (继承自EastAsianLunisolarCalendar。)
- Clone
创建作为当前Calendar 对象副本的新对象。(继承自Calendar。)
- Equals(Object)
确定指定的Object 是否等于当前的Object。(继承自Object。)
- Finalize
允许Object 在“垃圾回收”回收Object 之前尝试释放资源并执行其他清理操作。(继承自Object。)
- GetCelestialStem
计算甲子(60 年)循环中指定年份的天干。 (继承自EastAsianLunisolarCalendar。)
- GetDayOfMonth
计算指定日期中的月中日期。 (继承自EastAsianLunisolarCalendar。)
- GetDayOfWeek
计算指定日期中的周中日期。 (继承自EastAsianLunisolarCalendar。)
- GetEra
检索对应于指定DateTime 类型的纪元。(重写Calendar.GetEra(DateTime)。)
- GetDaysInYear(Int32, Int32)
计算指定纪元年份中的天数。 (继承自EastAsianLunisolarCalendar。)
- GetDaysInYear(Int32)
返回当前纪元的指定年份中的天数。 (继承自Calendar。)
- ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)
返回设置为指定的日期、时间和纪元的DateTime。(继承自EastAsianLunisolarCalendar。)
- ToFourDigitYear
将指定的年份转换为一个四位数的年份。(继承自EastAsianLunisolarCalendar。)
- ToString
返回表示当前Object 的String。(继承自Object。)
- GetDaysInMonth(Int32, Int32, Int32)
计算指定纪元年份的指定月份中的天数。(继承自EastAsianLunisolarCalendar。)
- GetDaysInMonth(Int32, Int32)
返回当前纪元的指定月份和年份中的天数。(继承自Calendar。)
- GetDayOfYear
计算指定日期中的年中日期。 (继承自EastAsianLunisolarCalendar。)
- GetMinute
返回指定的DateTime 中的分钟值。(继承自Calendar。)
- GetMilliseconds
返回指定的DateTime 中的毫秒值。(继承自Calendar。)
- GetLeapMonth(Int32, Int32)
计算指定纪元年份的闰月。 (继承自EastAsianLunisolarCalendar。)
- GetLeapMonth(Int32)
计算指定年份的闰月。 (继承自Calendar。)
- GetHour
返回指定的DateTime 中的小时值。(继承自Calendar。)
- GetHashCode
用作特定类型的哈希函数。 (继承自Object。)
- MemberwiseClone
创建当前Object 的浅表副本。(继承自Object。)
- IsLeapYear(Int32, Int32)
确定指定纪元中的指定年份是否为闰年。(继承自EastAsianLunisolarCalendar。)
- IsLeapYear(Int32)
确定当前纪元中的指定年份是否为闰年。(继承自Calendar。)
- IsLeapMonth(Int32, Int32, Int32)
确定指定纪元年份中的指定月份是否为闰月。(继承自EastAsianLunisolarCalendar。)
- IsLeapMonth(Int32, Int32)
确定当前纪元中指定年份的指定月份是否为闰月。(继承自Calendar。)
- IsLeapDay(Int32, Int32, Int32, Int32)
确定指定纪元中的指定日期是否为闰日。(继承自EastAsianLunisolarCalendar。)
- IsLeapDay(Int32, Int32, Int32)
确定当前纪元中的指定日期是否为闰日。(继承自Calendar。)
- GetYear
返回指定日期中的年份。 (继承自EastAsianLunisolarCalendar。)
- GetWeekOfYear
返回年中包括指定DateTime 中的日期的星期。(继承自Calendar。)
- GetType
获取当前实例的Type。(继承自Object。)
- GetTerrestrialBranch
计算甲子(60 年)循环中指定年份的地支。 (继承自EastAsianLunisolarCalendar。)
- GetSexagenaryYear
计算与指定日期对应的甲子(60 年)循环中的年。 (继承自EastAsianLunisolarCalendar。)
- GetSecond
返回指定的DateTime 中的秒值。(继承自Calendar。)
- GetMonthsInYear(Int32, Int32)
计算指定纪元年份中的月数。 (继承自EastAsianLunisolarCalendar。)
- GetMonthsInYear(Int32)
返回当前纪元中指定年份的月数。 (继承自Calendar。)
- GetMonth
返回指定日期中的月份。 (继承自EastAsianLunisolarCalendar。)
- ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32)
返回设置为当前纪元中的指定日期和时间的DateTime。(继承自Calendar。)
ChineseLunisolarCalendar的属性
- AlgorithmType
获取一个值,该值指示当前日历是阳历、阴历还是二者的组合。(继承自EastAsianLunisolarCalendar。)
- Eras
Gets the eras that correspond to the range of dates and times supported by the currentChineseLunisolarCalendar object.(重写Calendar.Eras。)
- IsReadOnly
获取一个值,该值指示此Calendar 对象是否为只读。(继承自Calendar。)
- MaxSupportedDateTime
获取ChineseLunisolarCalendar 类支持的最大日期和时间。(重写Calendar.MaxSupportedDateTime。)
- MinSupportedDateTime
获取ChineseLunisolarCalendar 类支持的最小日期和时间。(重写Calendar.MinSupportedDateTime。)
- TwoDigitYearMax
获取或设置可以用两位数年份表示的 100 年范围内的最后一年。 (继承自EastAsianLunisolarCalendar。)
ChineseLunisolarCalendar的字段
- ChineseEra
指定对应于当前ChineseLunisolarCalendar 对象的纪元。