Skip to content

A simple .netstandard Library for automatically generating Holidays

License

Notifications You must be signed in to change notification settings

softawaregmbh/library-holidays

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages