Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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}.");
}
```