Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sikebe/shukujitsusharp
ShukujitsuSharp determines japanese holiday.
https://github.com/sikebe/shukujitsusharp
holiday holidays japanese-holiday japanese-holiday-datasets japanese-holidays
Last synced: 25 days ago
JSON representation
ShukujitsuSharp determines japanese holiday.
- Host: GitHub
- URL: https://github.com/sikebe/shukujitsusharp
- Owner: SIkebe
- License: mit
- Created: 2022-02-15T13:55:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-28T00:23:17.000Z (about 1 month ago)
- Last Synced: 2024-10-01T11:44:53.648Z (about 1 month ago)
- Topics: holiday, holidays, japanese-holiday, japanese-holiday-datasets, japanese-holidays
- Language: C#
- Homepage:
- Size: 74.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ShukujitsuSharp
[![Build status](https://github.com/SIkebe/ShukujitsuSharp/workflows/CI/badge.svg)](https://github.com/SIkebe/ShukujitsuSharp/actions?query=workflow%3A%22CI%22)
[![NuGet version](https://badge.fury.io/nu/ShukujitsuSharp.svg)](https://badge.fury.io/nu/ShukujitsuSharp)This library is heavily inspired by [soh335 / shukujitsu](https://github.com/soh335/shukujitsu/).
ShukujitsuSharp determines Japanese holiday.
Holidays are collected from https://www8.cao.go.jp/chosei/shukujitsu/syukujitsu.csv## Prerequisites
* .NET 6 or later## How to use this library
```csharp
using ShukujitsuSharp;if (Shukujitsu.IsShukujitsu(new DateOnly(2022, 1, 1)))
{
Console.WriteLine("shukujitsu!");
}if (Shukujitsu.Find(new DateOnly(2022, 1, 1), out var name))
{
// 2022-01-01 is 元日.
Console.WriteLine($"2022-01-01 is {name}.");
}
```