Skip to content

michaelroth1/mitoSoft.Holidays

Repository files navigation

mitoSoft.Holidays

A lightweight library to determine German / US holidays

Can be extended for other coutries.

Example usage

var holidays = new Nerds.Holidays();

var date = new DateTime(2023, 5, 4);

Assert.IsFalse(date.IsHoliday(holidays, Places.Earth));
Assert.IsTrue(date.IsHoliday(holidays, Places.AGalaxyFarFarAway));

var holiday = date.GetHoliday(holidays);

Assert.AreEqual("May the 4th", holiday.GetDisplayName());
  

For more examples see the testclasses in testproject.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages