資源簡介
C# 萬年歷 源碼下載
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Text;
using?System.Globalization;
namespace?Ex20_14
{
????class?ChinseClardent
????{
????????System.Globalization.ChineseLunisolarCalendar?calendar?=?new?System.Globalization.ChineseLunisolarCalendar();
????????//int?GetYear?(DateTime?time)?獲取指定公歷日期的農歷年份,使用的還是公歷紀元。
????????public?string?GetYear(DateTime?time)
????????{
????????????StringBuilder?sb?=?new?StringBuilder();
????????????int?year?=?calendar.GetYear(time);
????????????int?d;
????????????do
????????????{
????????????????d?=?year?%?10;
????????????????sb.Insert(0?ChineseNumber[d]);
????????????????year?=?year?/?10;
????????????}?while?(year?>?0);
????????????return?sb.ToString();
????????}
????????//?int?GetMonth?(DateTime?time)獲取指定公歷日期的農歷月份
?????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????24576??2007-07-11?11:35??萬年歷\Ex19_14\bin\Debug\Ex19_14.exe
?????文件??????28160??2007-07-11?11:35??萬年歷\Ex19_14\bin\Debug\Ex19_14.pdb
?????文件???????5632??2007-07-11?11:35??萬年歷\Ex19_14\bin\Debug\Ex19_14.vshost.exe
?????文件???????5189??2007-07-11?11:35??萬年歷\Ex19_14\ChinseClardent.cs
?????文件???????3266??2007-07-11?11:35??萬年歷\Ex19_14\Ex19_14.csproj
?????文件???????5780??2007-07-11?11:35??萬年歷\Ex19_14\Form1.cs
?????文件???????2880??2007-07-11?11:35??萬年歷\Ex19_14\Form1.Designer.cs
?????文件???????6010??2007-07-11?11:35??萬年歷\Ex19_14\Form1.resx
?????文件????????842??2007-07-11?11:35??萬年歷\Ex19_14\obj\Debug\Ex19_14.csproj.GenerateResource.Cache
?????文件??????24576??2007-07-11?11:35??萬年歷\Ex19_14\obj\Debug\Ex19_14.exe
?????文件????????180??2007-07-11?11:35??萬年歷\Ex19_14\obj\Debug\Ex19_14.Form1.resources
?????文件??????28160??2007-07-11?11:35??萬年歷\Ex19_14\obj\Debug\Ex19_14.pdb
?????文件????????180??2007-07-11?11:35??萬年歷\Ex19_14\obj\Debug\Ex19_14.Properties.Resources.resources
?????文件????????842??2007-07-11?11:35??萬年歷\Ex19_14\obj\Debug\Ex20_14.csproj.GenerateResource.Cache
?????文件??????24576??2007-07-11?11:35??萬年歷\Ex19_14\obj\Debug\Ex20_14.exe
?????文件????????180??2007-07-11?11:35??萬年歷\Ex19_14\obj\Debug\Ex20_14.Form1.resources
?????文件??????32256??2007-07-11?11:35??萬年歷\Ex19_14\obj\Debug\Ex20_14.pdb
?????文件????????180??2007-07-11?11:35??萬年歷\Ex19_14\obj\Debug\Ex20_14.Properties.Resources.resources
?????文件????????268??2007-07-11?11:35??萬年歷\Ex19_14\obj\Ex19_14.csproj.FileList.txt
?????文件????????268??2007-07-11?11:35??萬年歷\Ex19_14\obj\Ex20_14.csproj.FileList.txt
?????文件????????466??2007-07-11?11:35??萬年歷\Ex19_14\Program.cs
?????文件???????1162??2007-07-11?11:35??萬年歷\Ex19_14\Properties\AssemblyInfo.cs
?????文件???????2868??2007-07-11?11:35??萬年歷\Ex19_14\Properties\Resources.Designer.cs
?????文件???????5612??2007-07-11?11:35??萬年歷\Ex19_14\Properties\Resources.resx
?????文件???????1090??2007-07-11?11:35??萬年歷\Ex19_14\Properties\Settings.Designer.cs
?????文件????????249??2007-07-11?11:35??萬年歷\Ex19_14\Properties\Settings.settings
?????文件????????910??2007-07-11?11:35??萬年歷\Ex19_14.sln
?????文件??????22528??2007-07-11?11:35??萬年歷\Ex19_14.suo
?????文件??????24576??2007-07-11?11:35??萬年歷\Ex20_14\bin\Debug\Ex20_14.exe
?????文件??????32256??2007-07-11?11:35??萬年歷\Ex20_14\bin\Debug\Ex20_14.pdb
............此處省略38個文件信息
評論
共有 條評論