FB_CalcFederalHolidaysUS

FB_CalcFederalHolidaysUS 1:

Calculation of US federal holidays.

Description

Public holidays recognized by the US Federal government for the current year are calculated based on the date entered. A boolean output indicates whether the entered date matches one of the calculated holidays. To ensure international readability the block was translated into English. The parameters have the following meaning:

English name

German name

New Years Day

Neujahr

Martin Luther King, Jr. Day

MLKtag

Presidents Day

Presidentstag

Memorial Day

Memorialtag

Independence Day

Independencetag

Labor Day

Maifeiertag

Columbus Day

Columbustag

Veterans Day

Veteranstag

Thanksgiving Day

Thanksgivingtag

Christmas Day

Weihnachtstag

VAR_INPUT

dCurrentDate       : DATE;

dCurrentDate: Current date.

VAR_OUTPUT

dNewYearsDay           : DATE;
dMartinLutherKingJrDay : DATE;
dPresidentsDay         : DATE;
dMemorialDay           : DATE;
dIndependenceDay       : DATE;
dLaborDay              : DATE;
dColumbusDay           : DATE;
dThanksgivingDay       : DATE;
dChristmasDay          : DATE;

bNewYearsDay           : BOOL;
bMartinLutherKingJrDay : BOOL;
bPresidentsDay         : BOOL;
bMemorialDay           : BOOL;
bIndependenceDay       : BOOL;
bLaborDay              : BOOL;
bColumbusDay           : BOOL;
bThanksgivingDay       : BOOL;
bChristmasDay          : BOOL;

dxxxxxx: Date of the respective holiday.

bxxxxxx: Boolean statement indicating whether today is the respective holiday.