SolidExpert.HebrewToGregorian 1.0.5

dotnet add package SolidExpert.HebrewToGregorian --version 1.0.5
                    
NuGet\Install-Package SolidExpert.HebrewToGregorian -Version 1.0.5
                    
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="SolidExpert.HebrewToGregorian" Version="1.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SolidExpert.HebrewToGregorian" Version="1.0.5" />
                    
Directory.Packages.props
<PackageReference Include="SolidExpert.HebrewToGregorian" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SolidExpert.HebrewToGregorian --version 1.0.5
                    
#r "nuget: SolidExpert.HebrewToGregorian, 1.0.5"
                    
#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.
#:package SolidExpert.HebrewToGregorian@1.0.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SolidExpert.HebrewToGregorian&version=1.0.5
                    
Install as a Cake Addin
#tool nuget:?package=SolidExpert.HebrewToGregorian&version=1.0.5
                    
Install as a Cake Tool

SolidExpert.HebrewToGregorian

SolidExpert.HebrewToGregorian is a lightweight .NET library that converts Hebrew calendar holidays into their corresponding Gregorian dates. It ships with NUnit tests and a GitHub Actions workflow that can automatically pack and publish the library to NuGet.

Getting Started

dotnet add package SolidExpert.HebrewToGregorian
using SolidExpert.HebrewToGregorian;

var holidays = new HBHolidays();
var gregorianDates = holidays.GetHolidaysForGregorianYear(new DateTime(2024, 1, 1));

Features

  • Generate the full list of Yomim Tovim and fast days that fall within any Gregorian year.
  • Convert any Hebrew date (year-month-day) into its Gregorian equivalent (and vice versa).
  • Perform Hebrew date arithmetic (add/subtract days, compute day spans) without reinventing calendar math.
  • Enumerate inclusive Gregorian ranges and inspect the Hebrew representation day by day.
  • Inspect month-level metadata (names, lengths, boundaries) for any Hebrew year.

Usage Examples

var holidays = new HBHolidays();
var converter = new HebrewGregorianConverter();

var upcoming = holidays.GetHolidaysForGregorianYear(new DateTime(2025, 1, 1));

var hebrew = converter.ToHebrew(new DateTime(2025, 10, 3));           // 5786-1-10
var gregorian = converter.ToGregorian(5786, 1, 15);                   // 2025-10-08
var plusFiveDays = converter.AddDays(new HebrewDate(5786, 1, 10), 5); // 5786-1-15
var span = converter.DaysBetween(new HebrewDate(5786, 1, 1), new HebrewDate(5786, 1, 10)); // 9

var months = converter.GetYearMonths(5786);
var tishrei = months.First();                         // HebrewMonthInfo
var adar = months.First(m => m.Name.StartsWith("Adar"));

Projects

  • src/SolidExpert.HebrewToGregorian – main library
  • tests/SolidExpert.HebrewToGregorian.Tests – NUnit-based test suite

Build and test everything:

dotnet test

Publishing to NuGet

Publishing is automated through the GitHub Actions workflow defined in .github/workflows/nuget-publish.yml. To publish:

  1. Set the NUGET_API_KEY secret in the GitHub repository.
  2. Trigger the workflow manually with a version (or push a tag like v1.2.3).
  3. The workflow restores, builds, packs, and pushes the .nupkg to NuGet, skipping duplicates.

You can also publish locally:

dotnet pack src/SolidExpert.HebrewToGregorian/SolidExpert.HebrewToGregorian.csproj -c Release -o ./.artifacts
dotnet nuget push ./.artifacts/*.nupkg --api-key <key> --source https://api.nuget.org/v3/index.json

License

MIT © 2025 Solidexpert LTD

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.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.5 136 2/15/2026
1.0.4 230 11/26/2025
1.0.3 217 11/25/2025
1.0.2 229 11/25/2025
1.0.0 225 11/25/2025