阴历不会。 但闰年不难呀。C语言书就有: var Year,Temp:Word; D:TDate; begin DecodeDate(D,Year,Temp,Temp); if (Year mod 100=0)or((Year mod 4=0)and(Year mod 100<>0)) then ShowMessage('It is a leap year!'); end; 或用一个函数:IsLeapYear;//好象是这样 查查帮助吧 另外增加一年可以用IncYear(Date:TDateTime);//D5下没有! 这样你不就很容量得出后一百年的闰年了。至于前一百年的闰年情况就也不难呀。取出当年年分用DecodeDate函数。然后用循环减上一百次并判断是不是闰年不就行了吗?
http://www.csdn.net/expert/topic/828/828809.xml?temp=.3125727
http://www.csdn.net/expert/topic/953/953463.xml?temp=8.045596E-02要的话,留下Email
他可能知道的
他可是以为高手哦!
我的Email是:[email protected]或[email protected]
或[email protected] 希望最好发到sohu邮箱
再次感谢!!
[email protected],[email protected],[email protected],[email protected]
请查收to: liaoqingpeng(棋快一步)
我的源码也是1900-2050,其它的只能查别的资料了
但闰年不难呀。C语言书就有:
var
Year,Temp:Word;
D:TDate;
begin
DecodeDate(D,Year,Temp,Temp);
if (Year mod 100=0)or((Year mod 4=0)and(Year mod 100<>0)) then
ShowMessage('It is a leap year!');
end;
或用一个函数:IsLeapYear;//好象是这样 查查帮助吧
另外增加一年可以用IncYear(Date:TDateTime);//D5下没有!
这样你不就很容量得出后一百年的闰年了。至于前一百年的闰年情况就也不难呀。取出当年年分用DecodeDate函数。然后用循环减上一百次并判断是不是闰年不就行了吗?
[email protected]
把你那150年的数据给我一份好把?谢谢
[email protected]
也给我发一份吧!谢谢
[email protected]
[email protected]