当前位置:网站首页>C# 计算农历日期方法 2022

C# 计算农历日期方法 2022

2022-07-06 17:23:00 济南医疗小程序状元

    

using System;
using System.Collections;
using System.Globalization;

namespace 计算农历日期方法
{
    public class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");




            //ChinaDate DemoTime = new ChinaDate();

            //DemoTime. ChinaDate.GetChinaDate(DateTime dt) //获取农历日期


            //ChinaDate.GetChinaDate(DateTime dt) //获取农历日期





        }

        #region 类 
        // 拷贝类  去掉static ,可以实例化类 
        public static class ChinaDate
        {
            private static ChineseLunisolarCalendar china = new ChineseLunisolarCalendar();
            private static Hashtable gHoliday = new Hashtable();
            private static Hashtable nHoliday = new Hashtable();
            private static string[] JQ = { "小寒", "大寒", "立春", "雨水", "惊蛰", "春分", "清明", "谷雨", "立夏", "小满&
原网站

版权声明
本文为[济南医疗小程序状元]所创,转载请带上原文链接,感谢
https://blog.csdn.net/chenggong9527/article/details/125638190