ChineseCalHelper Class

HD.Common

ChineseCalHelper Class Helper帮助文档
中国日历
Inheritance Hierarchy

SystemObject  HD.CommonChineseCalHelper

Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public class ChineseCalHelper
Public Class ChineseCalHelper
public ref class ChineseCalHelper
type ChineseCalHelper =  class end

The ChineseCalHelper type exposes the following members.

Constructors

  NameDescription
Public methodChineseCalHelper(DateTime)
用一个标准的公历日期来初使化
Public methodChineseCalHelper(Int32, Int32, Int32, Boolean)
用农历的日期来初使化
Top
Methods

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Properties

  NameDescription
Public propertyAnimal
计算属相的索引,注意虽然属相是以农历年来区别的,但是目前在实际使用中是按公历来计算的 鼠年为1,其它类推
Public propertyAnimalString
取属相字符串
Public propertyChineseConstellation
28星宿计算
Public propertyChineseDateString
取农历日期表示法:农历一九九七年正月初五
Public propertyChineseDay
农历日
Public propertyChineseDayString
农历日中文表示
Public propertyChineseHour
时辰
Public propertyChineseMonth
农历的月份
Public propertyChineseMonthString
农历月份字符串
Public propertyChineseTwentyFourDay
定气法计算二十四节气,二十四节气是按地球公转来计算的,并非是阴历计算的
Public propertyChineseTwentyFourNextDay
Public propertyChineseTwentyFourPrevDay
Public propertyChineseYear
取农历年份
Public propertyChineseYearString
取农历年字符串如,一九九七年
Public propertyConstellation
计算指定日期的星座序号
Public propertyDate
取对应的公历日期
Public propertyDateHoliday
按公历日计算的节日
Public propertyDateString
公历日期中文表示法 如一九九七年七月一日
Public propertyGanZhiDateString
取当前日期的干支表示法如 甲子年乙丑月丙庚日
Public propertyGanZhiDayString
取干支日表示法
Public propertyGanZhiMonthString
取干支的月表示字符串,注意农历的闰月不记干支
Public propertyGanZhiYearString
取农历年的干支表示法如 乙丑年
Public propertyIsChineseLeapMonth
是否闰月
Public propertyIsChineseLeapYear
当年是否有闰月
Public propertyIsLeapYear
当前是否公历闰年
Public propertynewCalendarHoliday
计算中国农历节日
Public propertyWeekDay
取星期几
Public propertyWeekDayHoliday
按某月第几周第几日计算的节日
Public propertyWeekDayStr
周几的字符
Top
See Also

Reference