摘要:
网上已经有很多C#的农历类,但看来都很复杂,其实C#中已经提供了中国的农历类ChineseLunisolarCalendar。但未提供节气和节日功能。根据网上的方法字节写了一个中国农历类!ChinaDate.GetChinaDate(DateTime dt) 获取农历日期ChinaDate.GetYear(DateTime dt) 获取农历年份(包含天干地支和生肖信息)ChinaDate.GetMonth(DateTime dt)获取农历月份ChinaDate.GetDay(DateTime dt)获取农历日期ChinaDate.GetSolarTerm(DateTime dt)获取节气Chi 阅读全文
posted @ 2011-01-13 16:18 PHP-张工 阅读(6076) 评论(10) 推荐(1) 编辑