common workdays intl

Conteúdo
Índice 🔎︎

Weekend is an optional parameter – a number or a string used to specify the days of the week that are weekend days and are not considered working days. Weekend is a weekend number or string that specifies when weekends occur. Weekend number values indicate the following weekend days:

De 1 a 7 para fins de semana com dois dias e de 11 a 17 para fins de semana com um dia.

número | Weekend
--- | ---
1 ou omisso | sábado e domingo
2 | domingo e segunda
3 | segunda e terça
4 | terça e quarta
5 | quarta e quinta
6 | quinta e sexta
7 | sexta e sábado
11 | apenas domingo
12 | apenas segunda
13 | apenas terça
14 | apenas quarta
15 | apenas quinta
16 | apenas sexta
17 | apenas sábado

Weekend string provides another way to define the weekly non-working days. It must have seven (7) characters – zeros (0) for working day and ones (1) for non-working day. Each character represents a day of the week, starting with Monday. Only 1 and 0 are valid. “1111111” is an invalid string and should not be used. For example, the weekend string “0000011” defines Saturday and Sunday as non-working days.

Holidays is an optional list of dates that must be counted as non-working days. The list can be given in a cell range.