1.getdayԴ?源码?
getdayԴ??
你这是要什么语言的?我这里有C版本的,当然C++版本也是源码可以改出来的。包含了农历与节气,源码deform怎么设置源码基本上能满足你的源码要求,如果需要,源码重庆源码时代地址可以追问,源码ios系统源码下载源码奉上,源码另外,源码我还有个C/C++的源码农历库,专门为万年历设计,源码集成了很实用的源码功能,用起来非常方便。源码以下是源码圣诞易语言源码类的声明:class CLunar{
public:
virtual long Int(double dDays) const=0;
virtual bool GetDayOrdinal(LONGTIME LongTime,int iYear,double &dDays)=0;
virtual bool GetDateFromOrdinal(int iYear,double dDays,LONGTIME &LongTime)=0;
virtual bool GetEasterSunday(int iYear,unsigned short &wMonth,unsigned short &wDay)=0;
virtual bool GetConstellation(int iYear,unsigned short wMonth,unsigned short wDay,unsigned short &wConstellationIndex)=0;
virtual bool GetGanZhi(LONGTIME LongTime,GANZHI &GanZhi,bool bYStartLiChun=false)=0;
virtual bool GetGregorian(LUNARDATE LunarDate,LONGTIME &LongTime)=0;
virtual bool GetLunar(LONGTIME LongTime,LUNARDATE &LunarDate)=0;
virtual bool GetLunarMonthInfo(int iYear,LUNARMONTH &MonthInfo)=0;
virtual bool GetLunarPhase(int iYear,unsigned short wMonth,LUNARPHASE &LunarPhase)=0;
virtual bool GetSolarTerms(int iYear,SOLARTERMS &SolarTerms)=0;
virtual bool IsLeapYear(int iYear,bool &bLeapYear)=0;
virtual bool GetExtremeSeason(int iYear,EXTREMESEASON &ExtremeSeason)=0;
virtual bool GetSheRi(int iYear,SHERI &SheRi)=0;
virtual bool GetFengLong(int iYear,unsigned short &wFengLong)=0;
virtual bool GetDays(LONGTIME LongTime1,LONGTIME LongTime2,double &dDays)=0;
virtual bool GetDate(LONGTIME LongTime,double dDays,LONGTIME &DstLongTime)=0;
virtual bool InitTimeStructure(LONGTIME &LongTime,bool bCurrentTime,int iYear=,unsigned short wMonth=1,unsigned short wDay=1,unsigned short wHour=0,unsigned short wMinute=0,unsigned short wSecond=0,unsigned short wMilliSecond=0)=0;
virtual bool GetDayOfWeek(int iYear,unsigned short wMonth,unsigned short wDay,unsigned short &wDayOfWeek)=0;
virtual bool GetEmperorReign(LONGTIME longtime,char *pBuffer,unsigned int BufSize)=0;
virtual unsigned short GetDaysOfMonth(int iYear,unsigned short wMonth)=0;
virtual unsigned short GetDaysOfYear(int iYear)=0;
virtual unsigned short GetLeapMonth(int iYear)=0;
virtual unsigned short GetDaysOfLunarMonth(int iLunarYear,unsigned short wLunarMonth,bool bLeapMonth)=0;
virtual unsigned short GetDaysOfLunarYear(int iLunarYear)=0;
virtual LONGTIME SysTimeToLong(SYSTEMTIME SystemTime) const=0;
virtual SYSTEMTIME LongTimeToSys(LONGTIME LongTime) const=0;
virtual int Release()=0;
protected:
CLunar(void);
virtual ~CLunar(void);
};