; TDateTime TheDate; //日期
int FYear,FMonth,FDay,FTime; //公历年月日时
int FcYear,FcMonth,FcDay,FcTime; //农历年月日时
AnsiString __fastcall GetDateString(); //获取日期字符串
AnsiString __fastcall GetcDateString(); //获取农历日期字符串
int __fastcall GetBit(int m,int n); //获取1bit
void __fastcall GetYMD(); //获取年月日
void __fastcall SetDate(TDateTime); //用一个TDateTime类型的变量转换
//-----------分别修改公历的年月日时-------------------------------------
void __fastcall SetYear(int AYear){SetBy(AYear,FMonth,FDay,FTime);};
void __fastcall SetMonth(int AMonth){SetBy(FYear,AMonth,FDay,FTime);};
void __fastcall SetDay(int ADay){SetBy(FYear,FMonth,ADay,FTime);};
void __fastcall SetTime(int ATime){SetBy(FYear,FMonth,FDay,ATime);};
//-----------分别修改农历的年月日时---------------------------------------
void __fastcall SetcYear(int AcYear){SetByc(AcYear,FcMonth,FcDay,FcTime);};
void __fastcall SetcMonth(int AcMonth){SetByc(FcYear,AcMonth,FcDay,FcTime);};
void __fastcall SetcDay(int AcDay){SetByc(FcYear,FcMonth,AcDay,FcTime);};
void __fastcall SetcTime(int AcTime){SetByc(FcYear,FcMonth,FcDay,AcTime);};
TDateTime __fastcall GetLastJie(); //取得上一个节
TDateTime __fastcall GetNextJie(); //取得下一个节
TDateTime __fastcall GetLastQi(); //取得上一个中气
TDateTime __fastcall GetNextQi(); //取得下一个中气
int __fastcall GetDayOfWeek(); //取得一周的第几天
AnsiString __fastcall GetWeekString(); //返回星期几的字符串
protected:
public:
void __fastcall SetBy(int,int,int,int); //用公历设置
void __fastcall SetByc(int,int,int,int); //用农历设置
__fastcall ThsDivineCalendar(TComponent* Owner);
//属性:年月日时
__property int Year={read=FYear,write=SetYear};
__property int Month={read=FMonth,write=SetMonth};
__property int Day={read=FDay,write=SetDay};
__property int Time={read=FTime,write=SetTime};
//属性: