FB_CalcPublicHolidaysUS
Calculation of US public holidays.
Description
Public holidays recognized by the US Federal government, as well as most popular holiday 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 |
Good Friday | Karfreitag |
Easter Sunday | Ostersonntag |
Memorial Day | Ostermontag |
Independence Day | Independencetag |
Labor Day | Maifeiertag |
Columbus Day | Columbustag |
Veterans Day | Veteranstag |
Thanksgiving Day | Thanksgivingtag |
Thanksgiving Friday | Thanksgivingfriestag |
Christmas Eve | Heiligabend |
Christmas Day | Weihnachtstag |
New Years Eve | Silvester |
VAR_INPUT
dCurrentDate : DATE;
dCurrentDate: Current date.
VAR_OUTPUT
dNewYearsDay : DATE;
dMartinLutherKingJrDay : DATE;
dPresidentsDay : DATE;
dGoodFriday : DATE;
dEasterSunday : DATE;
dMemorialDay : DATE;
dIndependenceDay : DATE;
dLaborDay : DATE;
dColumbusDay : DATE;
dVeteransDay : DATE;
dThanksgivingDay : DATE;
dThanksgivingFriday : DATE;
dChristmasEve : DATE;
dChristmasDay : DATE;
dNewYearsEve : DATE;
bNewYearsDay : BOOL;
bMartinLutherKingJrDay : BOOL;
bPresidentsDay : BOOL;
bGoodFriday : BOOL;
bEasterSunday : BOOL;
bMemorialDay : BOOL;
bLaborDay : BOOL;
bColumbusDay : BOOL;
bVeteransDay : BOOL;
bThanksgivingDay : BOOL;
bThanksgivingFriday : BOOL;
bChristmasEve : BOOL;
bChristmasDay : BOOL;
bNewYearsEve : BOOL;
dxxxxxx: Date of the respective holiday.
bxxxxxx: Boolean statement indicating whether today is the respective holiday.