Soenneker.Extensions.CultureInfos
4.0.136
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Extensions.CultureInfos --version 4.0.136
NuGet\Install-Package Soenneker.Extensions.CultureInfos -Version 4.0.136
<PackageReference Include="Soenneker.Extensions.CultureInfos" Version="4.0.136" />
<PackageVersion Include="Soenneker.Extensions.CultureInfos" Version="4.0.136" />
<PackageReference Include="Soenneker.Extensions.CultureInfos" />
paket add Soenneker.Extensions.CultureInfos --version 4.0.136
#r "nuget: Soenneker.Extensions.CultureInfos, 4.0.136"
#:package Soenneker.Extensions.CultureInfos@4.0.136
#addin nuget:?package=Soenneker.Extensions.CultureInfos&version=4.0.136
#tool nuget:?package=Soenneker.Extensions.CultureInfos&version=4.0.136
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.762)
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 |
|---|---|---|
| 4.0.156 | 114 | 10/15/2026 |
| 4.0.155 | 45 | 10/15/2026 |
| 4.0.154 | 106 | 10/14/2026 |
| 4.0.153 | 152 | 10/14/2026 |
| 4.0.152 | 208 | 10/14/2026 |
| 4.0.146 | 242 | 10/13/2026 |
| 4.0.145 | 138 | 10/12/2026 |
| 4.0.143 | 420 | 10/12/2026 |
| 4.0.142 | 639 | 10/12/2026 |
| 4.0.141 | 711 | 10/11/2026 |
| 4.0.140 | 1,971 | 9/30/2026 |
| 4.0.139 | 1,188 | 9/25/2026 |
| 4.0.138 | 388 | 9/25/2026 |
| 4.0.137 | 143 | 9/24/2026 |
| 4.0.136 | 2,840 | 9/16/2026 |
| 4.0.135 | 645 | 9/16/2026 |
| 4.0.134 | 103 | 9/15/2026 |
| 4.0.133 | 1,882 | 9/13/2026 |
| 4.0.132 | 578 | 9/13/2026 |
| 4.0.131 | 1,368 | 9/12/2026 |
Updated NuGet packages