lunar-csharp 1.5.12

dotnet add package lunar-csharp --version 1.5.12                
NuGet\Install-Package lunar-csharp -Version 1.5.12                
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.5.12" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add lunar-csharp --version 1.5.12                
#r "nuget: lunar-csharp, 1.5.12"                
#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.5.12

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

lunar License

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

自v1.4.0开始拥抱netstandard2.0、C#7.1

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

Star History

Star History Chart

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.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.12 165 11/12/2024
1.5.11 1,351 3/18/2024
1.5.10 150 3/1/2024
1.5.9 165 1/31/2024
1.5.8 215 1/8/2024
1.5.7 332 11/9/2023
1.5.6 151 10/25/2023
1.5.5 220 9/6/2023
1.5.4 185 8/25/2023
1.5.3 355 4/5/2023
1.5.2 265 3/12/2023
1.5.1 321 2/20/2023
1.5.0 323 2/10/2023
1.4.2 431 12/9/2022
1.4.1 357 12/2/2022
1.4.0 405 11/14/2022
1.3.0 396 11/12/2022
1.2.19 854 5/24/2022
1.2.18 471 5/3/2022
1.2.17 542 3/25/2022
1.2.16 503 2/20/2022
1.2.15 487 1/27/2022
1.2.14 471 1/20/2022
1.2.13 324 12/16/2021
1.2.12 331 11/30/2021

新增2025年法定假日数据。