Appearance
GetLikelyWeekendDays Method
Definition
- Namespace:
JASE.Extensions - Assembly:
JASE.Primitives.dll
IReadOnlyCollection<DayOfWeek> GetLikelyWeekendDays(CultureInfo culture)
csharp
IReadOnlyCollection<DayOfWeek> GetLikelyWeekendDays(CultureInfo culture)Gets the likely weekend days for a given culture based on its first day of the week.
Parameters
| Name | Description |
|---|---|
culture | The culture whose weekend days should be determined. |
Returns
A HashSet1` containing the likely weekend days for the given culture.
Remarks
- In most Western countries (e.g., US, UK, Canada, Germany), Saturday and Sunday are weekends.
- In Islamic countries (e.g., Saudi Arabia, UAE), Friday and Saturday are weekends.
- In Iran, Thursday and Friday are typically considered weekends.
- This method assumes that the first day of the week influences the weekend structure.