Enum Weekday
- Namespace
- ArcanaDevelopment.adTempus.Shared
- Assembly
- ArcanaDevelopment.adTempus.Shared.dll
Represents the days of the week.
[ComVisible(true)]
[Guid("07723B11-0D02-43F0-BDD8-A9FC3B95F9B8")]
public enum Weekday
Fields
Any day that is a holiday
Including this value will include any day that is a holiday, in addition to any other days selected. For example, using CreateBitmask(params int[])(Weekday.Saturday,Weekend.Sunday,Weekday.AnyHoliday) will select Saturdays, Sundays, and Holidays.
Any day that is not a holiday.
Combining this value with another value will select all non-holidays in addition to the selected days, which is probably not what you want. For example, CreateBitmask(params int[])(Weekday.Monday,Weekday.AnyNonHoliday) will match on any day that is a Monday or any day that is not a holiday.
If you want to select all Mondays that are not holidays, use CreateBitmask(params int[])(Weekday.Monday,Weekday.ExcludeHolidays).
Excludes any day that is a holiday.
If this value is used it must be combined with one or more values in the Sunday through Saturday range. For example, CreateBitmask(params int[])(Weekday.Monday,Weekday.ExcludeHolidays) selects all Mondays that are not holidays. To select all non-holidays regardless of the day of the week, use AnyNonHoliday.
Friday
Monday
Saturday
Sunday
Get the idea?
Tuesday
Wednesday
Remarks
Note that this enum uses Sunday=1 through Saturday=7, while System.DayOfWeek uses Sunday=0 through Saturday=6.