Skip to content

softawaregmbh/library-holidays

dev
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.

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

About

A simple .netstandard Library for automatically generating Holidays

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages