Skip to content

holiday-jp/holiday_jp-csharp

Repository files navigation

holiday_jp-csharp

Build status NuGet Badge License

Japanese holiday for .NET

Install

Install with nuget:

PM> Install-Package HolidayJp

.NET CLI

dotnet add package HolidayJp

Usage

var holidays = HolidayJp.Between(DateTime.Parse('2019-09-14'), DateTime.Parse('2019-09-21'));
Console.WriteLine(holidays[0].Name) //敬老の日
var holidays = HolidayJp.SomeMonth(2019, 9);
Console.WriteLine(holidays[0].Name) //敬老の日
var isHoliday = HolidayJp.IsHoliday(DateTime.Parse('2019-09-16'));
Console.WriteLine(isHoliday) //true
Holiday holiday;
var holiday = HolidayJp.TryGet(DateTime.Parse('2019-09-16'), out holiday);
Console.WriteLine(holiday.Name) //敬老の日

Test by syukujitsu.csv

syukujitsu.csv

出典:[内閣府ホームページ] ( https://www8.cao.go.jp/chosei/shukujitsu/gaiyou.html )

License

The MIT License (MIT). Please see License File for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published