lunar-csharp 1.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package lunar-csharp --version 1.3.0
NuGet\Install-Package lunar-csharp -Version 1.3.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="lunar-csharp" Version="1.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add lunar-csharp --version 1.3.0
#r "nuget: lunar-csharp, 1.3.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install lunar-csharp as a Cake Addin
#addin nuget:?package=lunar-csharp&version=1.3.0

// Install lunar-csharp as a Cake Tool
#tool nuget:?package=lunar-csharp&version=1.3.0

lunar License

lunar是一款无第三方依赖的公历(阳历)、农历(阴历、老黄历)、佛历和道历工具,支持星座、儒略日、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋凶煞宜忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道日及吉凶等。

自v1.3.0开始拥抱.net5.0、c#9.0

English

示例

using System;
using Lunar;

namespace demo
{
    class Program
    {
        static void Main(string[] args)
        {
            var solar = new Solar(1986, 5, 29);
             
            var lunar = solar.Lunar;
             
            Console.WriteLine(lunar.FullString);
            Console.WriteLine(solar.FullString);
        }
    }
}

输出结果:

一九八六年四月廿一 丙寅(虎)年 癸巳(蛇)月 癸酉(鸡)日 子(鼠)时 纳音[炉中火 长流水 剑锋金 桑柘木] 星期四 北方玄武 星宿[斗木獬](吉) 彭祖百忌[癸不词讼理弱敌强 酉不会客醉坐颠狂] 喜神方位[巽](东南) 阳贵神方位[巽](东南) 阴贵神方位[震](正东) 福神方位[兑](正西) 财神方位[离](正南) 冲[(丁卯)兔] 煞[东]
1986-05-29 00:00:00 星期四 双子座

文档

请移步至 https://6tail.cn/calendar/api.html

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net5.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on lunar-csharp:

Package Downloads
eslib.lunar

农历算法

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.5.11 283 3/18/2024
1.5.10 104 3/1/2024
1.5.9 129 1/31/2024
1.5.8 181 1/8/2024
1.5.7 286 11/9/2023
1.5.6 124 10/25/2023
1.5.5 184 9/6/2023
1.5.4 162 8/25/2023
1.5.3 324 4/5/2023
1.5.2 242 3/12/2023
1.5.1 288 2/20/2023
1.5.0 293 2/10/2023
1.4.2 399 12/9/2022
1.4.1 337 12/2/2022
1.4.0 377 11/14/2022
1.3.0 366 11/12/2022
1.2.19 812 5/24/2022
1.2.18 436 5/3/2022
1.2.17 516 3/25/2022
1.2.16 468 2/20/2022
1.2.15 454 1/27/2022
1.2.14 448 1/20/2022
1.2.13 289 12/16/2021
1.2.12 305 11/30/2021