Class WeekInfo
Week conventions for a locale's region. Days use ISO-8601 numbering
(1 = Monday … 7 = Sunday), matching the JS port's Intl convention.
Inherited Members
Namespace: Miloun.Cosmo
Assembly: Miloun.Cosmo.dll
Syntax
public sealed class WeekInfo
Constructors
WeekInfo(int, int, IReadOnlyList<int>)
Declaration
public WeekInfo(int firstDay, int minimalDays, IReadOnlyList<int> weekend)
Parameters
| Type | Name | Description |
|---|---|---|
| int | firstDay | |
| int | minimalDays | |
| IReadOnlyList<int> | weekend |
Properties
FirstDay
First day of the week, ISO numbering.
Declaration
public int FirstDay { get; }
Property Value
| Type | Description |
|---|---|
| int |
MinimalDays
Minimal days required in the first week of the year.
Declaration
public int MinimalDays { get; }
Property Value
| Type | Description |
|---|---|
| int |
Weekend
Weekend days, ISO numbering, in onset → cease order.
Declaration
public IReadOnlyList<int> Weekend { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<int> |