Errede.Holidays
1.0.1
dotnet add package Errede.Holidays --version 1.0.1
NuGet\Install-Package Errede.Holidays -Version 1.0.1
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.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Errede.Holidays --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Errede.Holidays, 1.0.1"
#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.1 // Install Errede.Holidays as a Cake Tool #tool nuget:?package=Errede.Holidays&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ErredeHolidays.Net 🇩🇴
Instala el paquete vÃa la consola de Package Manager:
Install-Package Errede.Holidays -Version 1.0.1
O utilizando .NET CLI:
dotnet add package Errede.Holidays --version 1.0.1
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 | Versions 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.
- Lista de todos los feriados
- Validación si un dia es feriado o no
- Soporta feriados católicos variables