v1.6.0 优化性能。

This commit is contained in:
6tail
2024-12-19 21:12:38 +08:00
parent 9fc0d2081a
commit 963db5bf1b
4 changed files with 80 additions and 5 deletions

View File

@@ -11,3 +11,6 @@
## [1.5.12] - 2024-11-12
1. 新增2025年法定假日数据。
## [1.6.0] - 2024-12-19
1. 优化:性能。

21
lunar/LICENSE Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2022 6tail
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

42
lunar/README.md Normal file
View File

@@ -0,0 +1,42 @@
# lunar [![License](https://img.shields.io/badge/license-MIT-4EB1BA.svg?style=flat-square)](https://github.com/6tail/lunar-csharp/blob/master/LICENSE)
lunar是一款无第三方依赖的公历(阳历)、农历(阴历、老黄历)、佛历和道历工具,支持星座、儒略日、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋凶煞宜忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道日及吉凶等。
> 自v1.4.0开始拥抱netstandard2.0、C#7.1
[English](https://github.com/6tail/lunar-csharp/blob/master/README_EN.md)
## 示例
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](https://6tail.cn/calendar/api.html "https://6tail.cn/calendar/api.html")
## Star History
[![Star History Chart](https://api.star-history.com/svg?repos=6tail/lunar-csharp&type=Date)](https://star-history.com/#6tail/lunar-csharp&Date)

View File

@@ -6,7 +6,7 @@
<RootNamespace>Lunar</RootNamespace>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<PackageId>lunar-csharp</PackageId>
<PackageVersion>1.5.12</PackageVersion>
<PackageVersion>1.6.0</PackageVersion>
<Title>无依赖的阳历、阴历、道历和佛历工具库</Title>
<Authors>6tail</Authors>
<Description>日历、公历(阳历)、农历(阴历、老黄历)、佛历、道历,节假日、星座、儒略日、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋凶煞宜忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道日及吉凶等。</Description>
@@ -16,11 +16,12 @@
<RepositoryType>git</RepositoryType>
<PackageTags>日历;公历;阳历;农历;阴历;老黄历;佛历;道历;法定假日</PackageTags>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AssemblyVersion>1.5.12</AssemblyVersion>
<FileVersion>1.5.12</FileVersion>
<PackageReleaseNotes>新增2025年法定假日数据</PackageReleaseNotes>
<AssemblyVersion>1.6.0</AssemblyVersion>
<FileVersion>1.6.0</FileVersion>
<PackageReleaseNotes>优化性能</PackageReleaseNotes>
<PackageIcon>lunar.png</PackageIcon>
<PackageLicenseUrl>https://raw.githubusercontent.com/6tail/lunar-csharp/master/LICENSE</PackageLicenseUrl>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
@@ -32,6 +33,14 @@
<Pack>True</Pack>
<PackagePath />
</None>
<None Include="README.md">
<Pack>True</Pack>
<PackagePath/>
</None>
<None Include="LICENSE">
<Pack>True</Pack>
<PackagePath/>
</None>
</ItemGroup>
</Project>