Table of Contents

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

AnyHoliday = 13

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.

AnyNonHoliday = 12

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).

ExcludeHolidays = 14

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 = 6

Friday

Monday = 2

Monday

Saturday = 7

Saturday

Sunday = 1

Sunday

Thursday = 5

Get the idea?

Tuesday = 3

Tuesday

Wednesday = 4

Wednesday

Remarks

Note that this enum uses Sunday=1 through Saturday=7, while System.DayOfWeek uses Sunday=0 through Saturday=6.

Extension Methods