A simple .netstandard Library for automatically generating Holidays
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
softaware.Holidays.Austria.Tests
softaware.Holidays.Austria
softaware.Holidays.Core.Tests
softaware.Holidays.Core
.gitignore
CONTRIBUTING.md
LICENSE
README.md
softaware.Holidays.sln

README.md

softaware.Holidays

A simple .netstandard library for automatically generating holidays

Usage

Install softaware.Holidays.<Country> from NuGet and then simply generate your holidays for a specific year using the following line of code:

var holidays = new Holidays.Generator().ForAustria(2018); // // Replace Austria with the country you want to generate the holidays for

Motivation

Some of our products need to be aware of holidays in order to function properly. In our latest project it was needed to calculate and distribute the correct work times. Because of this requirement in more than one project we decided to create a little library that we can simply include via NuGet in order to calculate the holidays. The main focus points of this library are easiest possible usage, good readability and extensibility via composition. Read more about the motivation and extensibility on our blog: softaware.Holidays - How Carl Friedrich Gauß helps us in resource planning and image categorization..

To-Dos

  • add option for different federal states in softaware.Holidays.Austria
  • add option if day is off or not (e.g. as realized in DanishHolidays.NET)
  • more tests (additional years)

References