CSDN技术中心 C#农历
http://dev.csdn.net/article/42/42269.shtm
由.Net类库提供的农历计算(C#农历) – 周公的专栏 – CSDN博客
http://blog.csdn.net/zhoufoxcn/archive/2007/11/21/1896258.aspx
ChineseLunisolarCalendar 类 (System.Globalization)
http://msdn.microsoft.com/zh-cn/library/system.globalization.chineselunisolarcalendar.aspx
由.Net类库提供的农历计算(C#农历)-获取当前日期的农历日期 – zq32206124的专栏 – CSDN博客
http://blog.csdn.net/zq32206124/archive/2008/09/14/2842717.aspx
/// <summary>
/// 展示阴历年份信息
/// </summary>
public static void ShowYearInfo()
{
for (int i = chineseDate.MinSupportedDateTime.Year; i < chineseDate.MaxSupportedDateTime.Year; i++)
{
Console.WriteLine(“年份:{0},月份总数:{1},总天数:{2},干支序号:{3}”, i, chineseDate.GetMonthsInYear(i),chineseDate.GetDaysInYear(i)
,chineseDate.GetSexagenaryYear(new DateTime(i,3,1)));
}
}
/// <summary>
/// 展示当前年份信息
/// </summary>
public static void ShowCurrentYearInfo()
{
Console.WriteLine(“今年的阴历时间:{0}年{1}月{2}日。”, chineseDate.GetYear(DateTime.Now),chineseDate.GetMonth(DateTime.Now),chineseDate.GetDayOfMonth(DateTime.Now));
Console.WriteLine(“今年阴历天数:{0},今年{1}闰年”, chineseDate.GetDaysInYear(DateTime.Now.Year),(chineseDate.IsLeapYear(DateTime.Now.Year)==true)?”是”:”不是”);
Console.WriteLine(“今年农历每月的天数:”);
for (int i = 1; i <= chineseDate.GetMonthsInYear(DateTime.Now.Year); i++)
{
Console.Write(“{0,-5}”,chineseDate.GetDaysInMonth(DateTime.Now.Year,i));
}
}
}
LunisolarCalendar\FormCalendar.cs_金哲显
http://hi.baidu.com/kingzhexian/blog/item/c9484cfd57ce7e88b801a030.html
历史博文
- 20080425 Groove use - 2009
- 0808 vc atl ocx 简单 1 - 2007
- 1227 CLR 托管 头文件 声明 位置 VS2005 ERROR - 2006