Skip to content

Project that the objective to Checke if the date informed it's a holiday, currently the Holidays implementeds here are in the language: pt-BR, pt-PT, en-CA, en-US and es-ES. If you want to improve this package feel free to clone and make a PR.

License

Notifications You must be signed in to change notification settings

guilhermecaixeta/World.Holiday

Repository files navigation

Verify World Holidays

Overview

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

Description - Improvements

1.1.2

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

1.1.3

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.

Holidays

The Holidays are implemented using this link, Feriados do Mundo as reference.

DateTimeHoliday Structure

...some logic
var dataHoliday = new DateTime().IsHoliday(ECulture.ptBR);

/*
Returning JSON like this
{
  "Date": "{DateTime}",
  "IsHoliday": {bool},
  "Holidays": 
  [
    {IReadOnly<Holiday>}
  ]
}
*/

Final Considerations

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.

Status

Git Actions

ASP.NET Core CI

Travis CI

Build Status

AppVeyor

Build status

Code Quality

Codacy Badge

About

Project that the objective to Checke if the date informed it's a holiday, currently the Holidays implementeds here are in the language: pt-BR, pt-PT, en-CA, en-US and es-ES. If you want to improve this package feel free to clone and make a PR.

Resources

License

Stars

Watchers

Forks

Packages

No packages published