ChineseCalHelper Class | Helper帮助文档 |
中国日历
Inheritance Hierarchy
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
Name | Description | |
---|---|---|
ChineseCalHelper(DateTime) |
用一个标准的公历日期来初使化
| |
ChineseCalHelper(Int32, Int32, Int32, Boolean) |
用农历的日期来初使化
|
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
Animal |
计算属相的索引,注意虽然属相是以农历年来区别的,但是目前在实际使用中是按公历来计算的
鼠年为1,其它类推
| |
AnimalString |
取属相字符串
| |
ChineseConstellation |
28星宿计算
| |
ChineseDateString |
取农历日期表示法:农历一九九七年正月初五
| |
ChineseDay |
农历日
| |
ChineseDayString |
农历日中文表示
| |
ChineseHour |
时辰
| |
ChineseMonth |
农历的月份
| |
ChineseMonthString |
农历月份字符串
| |
ChineseTwentyFourDay |
定气法计算二十四节气,二十四节气是按地球公转来计算的,并非是阴历计算的
| |
ChineseTwentyFourNextDay | ||
ChineseTwentyFourPrevDay | ||
ChineseYear |
取农历年份
| |
ChineseYearString |
取农历年字符串如,一九九七年
| |
Constellation |
计算指定日期的星座序号
| |
Date |
取对应的公历日期
| |
DateHoliday |
按公历日计算的节日
| |
DateString |
公历日期中文表示法 如一九九七年七月一日
| |
GanZhiDateString |
取当前日期的干支表示法如 甲子年乙丑月丙庚日
| |
GanZhiDayString |
取干支日表示法
| |
GanZhiMonthString |
取干支的月表示字符串,注意农历的闰月不记干支
| |
GanZhiYearString |
取农历年的干支表示法如 乙丑年
| |
IsChineseLeapMonth |
是否闰月
| |
IsChineseLeapYear |
当年是否有闰月
| |
IsLeapYear |
当前是否公历闰年
| |
newCalendarHoliday |
计算中国农历节日
| |
WeekDay |
取星期几
| |
WeekDayHoliday |
按某月第几周第几日计算的节日
| |
WeekDayStr |
周几的字符
|
See Also