中国农历算法(delphi)[3]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 luckyjan 的 blog

  if iscnleap(cndate) then strleap:='(闰)' else   strleap := '';
  result := '农历' + convertymd(cnyear,1) + '年' + convertymd(cnmonth,2) + '月'
                + strleap + convertymd(cnday,3) ;
end;

end.

//////////////////////////  应用 /////////////////////////////
uses cnyear;

procedure tform1.button1click(sender: tobject);
begin
  edit1.text:=gregdatetocnstr(datetimepicker1.date);

本文关键:中国农历算法(delphi)
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top