• 大小: 0.09M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: C#  万年历  

资源简介

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个文件信息

评论

共有 条评论