CNDate.cs

(开头部分) 57KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;

/// <summary>
/// 农历属性
/// </summary>
public class CNDate
{
    /// <summary>
    /// 农历年(整型)
    /// </summary>
    public int cnIntYear = 0;
    /// <summary>
    /// 农历月份(整型)
    /// </summary>
    public int cnIntMonth = 0;
    /// <summary>
    /// 农历天(整型)
    /// </summary>
    public int cnIntDay = 0;
    /// <summary>
    /// 农历年(支干)
    /// </summary>
    public string cnStrYear = "";
    /// <summary>
    /// 农历月份(字符)
    /// </summary>
    public string cnStrMonth = "";
    /// <summary>
    /// 农历天(字符)
    /// </summary>
    public string cnStrDay = "";
    /// <summary>
    /// 农历属象
    /// </summary>
    public string cnAnm = "";
    /// <summary>
    /// 二十四节气
    /// </summary>
    public string cnSolarTerm = "";
    /// <summary>
    /// 阴历节日
    /// </summary>
    public string cnFtvl = "";
    /// <summary>
    /// 阳历节日
    /// </summary>
    public string cnFtvs = "";
}

/// <summary>
/// 公历转农历
/// </summary>
public class ChinaDate
{
    #region 私有方法
    private static long[] lunarInfo = new long[] { 0x04bd8, 0x04ae0, 0x0a570, 0x054d5, 0x0d260, 0x0d950, 0x16554,
															   0x056a0, 0x09ad0, 0x055d2, 0x04ae0, 0x0a5b6, 0x0a4d0, 0x0d250, 0x1d255, 0x0b540, 0x0d6a0, 0x0ada2, 0x095b0,
															   0x14977, 0x04970, 0x0a4b0, 0x0b4b5, 0x06a50, 0x06d40, 0x1ab54, 0x02b60, 0x09570, 0x052f2, 0x04970, 0x06566,
															   0x0d4a0, 0x0ea50, 0x06e95, 0x05ad0, 0x02b60, 0x186e3, 0x092e0, 0x1c8d7, 0x0c950, 0x0d4a0, 0x1d8a6, 0x0b550,
															   0x056a0, 0x1a5b4, 0x025d0, 0x092d0, 0x0d2b2, 0x0a950, 0x0b557, 0x06ca0, 0x0b550, 0x15355, 0x04da0, 0x0a5d0,
后面还有 1858 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。