Scilab Function
Last update : 3/11/2005
werktage - No. of working days between two
dates
Calling Sequence
-
anzwerk =
werktage(Q0,bdg,kath)
Parameters
-
Q0
: Date Matrix. 1st row contains start date, the 2nd the end
date. The columns are sorted in the order [day,month,year]
-
bdg
: String with abbreviation of a german country (see also
FEIERTAG.M), default is 'HES' for Hessen.
-
kath
: 1 for catholic regions (having more celeb days)
-
anzwerk
: No. of working days (incl. start and end date) . The dates
24.12. and 31.12 are counted with a half working day, when they are
not on saturday or sunday.
Description
-
This function calculates the number of working days between two
dates (in Germany). I am sure, you can extend the code for your
countries by editing the scilab function "feiertag".
Examples
// number of working days in 2006 in Germany
// takes a little bit time, sorry.
Q=[1,1,2006;31,12,2006]
aw=werktage(Q);
disp(aw);
// end of werktage demo
See Also
feiertag
,
dday
,
Authors
-
Dr. Andreas Geissler geisslea@web.de
Used Function
feiertag