Soenneker.Extensions.CultureInfos
4.0.124
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Extensions.CultureInfos --version 4.0.124
NuGet\Install-Package Soenneker.Extensions.CultureInfos -Version 4.0.124
<PackageReference Include="Soenneker.Extensions.CultureInfos" Version="4.0.124" />
<PackageVersion Include="Soenneker.Extensions.CultureInfos" Version="4.0.124" />
<PackageReference Include="Soenneker.Extensions.CultureInfos" />
paket add Soenneker.Extensions.CultureInfos --version 4.0.124
#r "nuget: Soenneker.Extensions.CultureInfos, 4.0.124"
#:package Soenneker.Extensions.CultureInfos@4.0.124
#addin nuget:?package=Soenneker.Extensions.CultureInfos&version=4.0.124
#tool nuget:?package=Soenneker.Extensions.CultureInfos&version=4.0.124
Soenneker.Extensions.CultureInfos
Classifies a CultureInfo into a Friday–Saturday or Saturday–Sunday weekend pattern and checks days against that pattern.
Installation
dotnet add package Soenneker.Extensions.CultureInfos
Usage
using System.Globalization;
using Soenneker.Extensions.CultureInfos;
CultureInfo culture = CultureInfo.GetCultureInfo("ar-SA");
bool usesFridaySaturday = culture.UsesFriSatWeekend();
bool fridayIsWeekend = culture.IsWeekendDay(DayOfWeek.Friday);
IReadOnlySet<DayOfWeek> weekend = culture.GetWeekendDays();
GetWeekendDays() returns a shared immutable set. It is safe to cache and cannot be cast back to a mutable HashSet to alter results globally.
Classification rules
The Friday–Saturday pattern is selected for:
- Culture names beginning with
ar- he-ILfa-IRur-PK
Every other culture uses Saturday–Sunday. Matching is case-insensitive.
These are fixed package rules, not data from an official holiday calendar. They do not account for public holidays, historical changes, employer-specific schedules, or regional exceptions within the same language. For payroll, settlement, compliance, or other date-sensitive business rules, use a maintained calendar source for the relevant jurisdiction.
| Product | Versions 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. |
-
net10.0
- Soenneker.Extensions.String (>= 4.0.740)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Soenneker.Extensions.CultureInfos:
| Package | Downloads |
|---|---|
|
Soenneker.Extensions.DateTime
A collection of helpful DateTime extension methods |
|
|
Soenneker.Extensions.DateTimeOffsets
A collection of helpful DateTimeOffset extension methods |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.157 | 456 | 10/26/2026 |
| 4.0.156 | 1,379 | 10/15/2026 |
| 4.0.155 | 105 | 10/15/2026 |
| 4.0.154 | 266 | 10/14/2026 |
| 4.0.153 | 344 | 10/14/2026 |
| 4.0.152 | 468 | 10/14/2026 |
| 4.0.146 | 489 | 10/13/2026 |
| 4.0.145 | 229 | 10/12/2026 |
| 4.0.143 | 605 | 10/12/2026 |
| 4.0.142 | 867 | 10/12/2026 |
| 4.0.141 | 890 | 10/11/2026 |
| 4.0.140 | 2,147 | 9/30/2026 |
| 4.0.139 | 1,196 | 9/25/2026 |
| 4.0.138 | 394 | 9/25/2026 |
| 4.0.137 | 151 | 9/24/2026 |
| 4.0.136 | 2,844 | 9/16/2026 |
| 4.0.135 | 652 | 9/16/2026 |
| 4.0.134 | 108 | 9/15/2026 |
| 4.0.133 | 1,886 | 9/13/2026 |
| 4.0.124 | 628 | 9/7/2026 |
Updated Multiple NuGet packages