Git Product home page Git Product logo

library-holidays's Introduction

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

library-holidays's People

Contributors

bemayr avatar doerrd avatar skleni avatar rschacherl avatar

Watchers

Johannes Egger avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.