This package check if the date informed is a holiday, and returning a DateTimeHoliday as response. Currently this package support the cultures:
- pt-BR
- pt-PT
- en-US
- en-CA (All holidays are in English)
- es-ES
For this version some improvements was make. They are:
- Upgrade to asp.net standard 2.1
- Package was re-writed with the focus to improving performacing, currently this new version are almost 3x times than faster than backward.
- Add support to new countries: Spain and Canada
- Add code quality
- Add cake support to automate the pipeline
- Add new extension methods to get holidays, in intervel and from the currently date
- Add new exceptions
- Add unity tests
- The package it's did restructured to support more than one holiday per day
- the Locale has been changed to ECulture
- The name of holidays can e accessed in EHolidaysName
For this version, just bug fixs had been made.
- Bug fix in a mobile date (Maria Assumption)
- Add the Mathin Luther King Jr. Birthday on calender
- Fix a holiday names.
The Holidays are implemented using this link, Feriados do Mundo as reference.
...some logic
var dataHoliday = new DateTime().IsHoliday(ECulture.ptBR);
/*
Returning JSON like this
{
"Date": "{DateTime}",
"IsHoliday": {bool},
"Holidays":
[
{IReadOnly<Holiday>}
]
}
*/
This package has been made with the purpose help in the development based in the .net framework/core environment If you find an error in this package open an issue this help me to improve the package. If you want add new Culture in this project fell free to join to me, open a PR and start to contribute.