Errede.Holidays 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Errede.Holidays --version 1.0.0                
NuGet\Install-Package Errede.Holidays -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Errede.Holidays" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Errede.Holidays --version 1.0.0                
#r "nuget: Errede.Holidays, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Errede.Holidays as a Cake Addin
#addin nuget:?package=Errede.Holidays&version=1.0.0

// Install Errede.Holidays as a Cake Tool
#tool nuget:?package=Errede.Holidays&version=1.0.0                

ErredeHolidays.Net 🇩🇴

Nuget Nuget

Instala el paquete vía nuget o línea de comandos:

Install-Package ErredeHolidays.Net

Como usar

Un ejemplo de uso se demuestra en ErredeHolidays.Net.Example, una aplicación de consola enriquecida con SpectreConsole.

// Obtener todos los feriados del año
IEnumerable<IHoliday> holidayList = Holiday.GetAll();
IEnumerable<IHoliday> nextYearHolidays = Holiday.GetAll(2025);

// Saber si un día específico es feriado
new DateTime(2020, 12, 25).IsHoliday();

// o también...

if ( payDay.IsHoliday() ){
  PayOneDayBefore();
}

// Obtener datos de un feriado específico
DateOnly feriadoConstitucion = Holiday.GetHoliday(Enums.HolidayIdentity.DiaDeLaRestauracion, 2021).EffectiveDate;

// Validar el hoy, ayer y mañana
Today.IsHoliday();
Yesterday.WasHoliday();
Tomorrow.WillBeHoliday();
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 96 12/8/2024
1.0.0 101 12/8/2024

- Lista de todos los feriados
- Validación si un dia es feriado o no
- Soporta feriados católicos variables