Soenneker.Extensions.CultureInfos
4.0.143
Prefix Reserved
dotnet add package Soenneker.Extensions.CultureInfos --version 4.0.143
NuGet\Install-Package Soenneker.Extensions.CultureInfos -Version 4.0.143
<PackageReference Include="Soenneker.Extensions.CultureInfos" Version="4.0.143" />
<PackageVersion Include="Soenneker.Extensions.CultureInfos" Version="4.0.143" />
<PackageReference Include="Soenneker.Extensions.CultureInfos" />
paket add Soenneker.Extensions.CultureInfos --version 4.0.143
#r "nuget: Soenneker.Extensions.CultureInfos, 4.0.143"
#:package Soenneker.Extensions.CultureInfos@4.0.143
#addin nuget:?package=Soenneker.Extensions.CultureInfos&version=4.0.143
#tool nuget:?package=Soenneker.Extensions.CultureInfos&version=4.0.143
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.775)
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.143 | 0 | 10/12/2026 |
| 4.0.142 | 34 | 10/12/2026 |
| 4.0.141 | 245 | 10/11/2026 |
| 4.0.140 | 1,485 | 9/30/2026 |
| 4.0.139 | 1,173 | 9/25/2026 |
| 4.0.138 | 387 | 9/25/2026 |
| 4.0.137 | 142 | 9/24/2026 |
| 4.0.136 | 2,839 | 9/16/2026 |
| 4.0.135 | 644 | 9/16/2026 |
| 4.0.134 | 102 | 9/15/2026 |
| 4.0.133 | 1,881 | 9/13/2026 |
| 4.0.132 | 577 | 9/13/2026 |
| 4.0.131 | 1,367 | 9/12/2026 |
| 4.0.130 | 453 | 9/12/2026 |
| 4.0.129 | 2,255 | 9/9/2026 |
| 4.0.128 | 1,051 | 9/8/2026 |
| 4.0.127 | 1,877 | 9/8/2026 |
| 4.0.126 | 433 | 9/7/2026 |
| 4.0.125 | 1,076 | 9/7/2026 |
| 4.0.124 | 624 | 9/7/2026 |
Use NuGet Resilient Login v2