home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
- <script:module xmlns:script="http://openoffice.org/2000/script" script:name="HolidayNetherlands" script:language="StarBasic">Option Explicit
-
- Sub Main
- Call CalAutopilotTable()
- End Sub
-
-
-
- Sub FindWholeYearHolidays_NL(ByVal YearInt%)
-
- Dim lDate&
- Dim Easter$
-
- CalInsertBankholiday(DateSerial(YearInt%, 1, 1), "Nieuwjaarsdag", cHolidayType_Full)
-
- ' Easter, get it with look-up table
- lDate& = CalEasterTable & YearInt%
- CalInsertBankholiday(lDate&, "1e Paasdag", cHolidayType_Full)
- CalInsertBankholiday(lDate&+1, "2e Paasdag", cHolidayType_Full)
-
- lDate& = lDate + 39
- CalInsertBankholiday(lDate&, "Hemelvaartsdag", cHolidayType_Full)
-
- lDate& = lDate + 10
- CalInsertBankholiday(lDate&, "1e Pinksterdag", cHolidayType_Full)
- CalInsertBankholiday(lDate&+1, "2e Pinksterdag", cHolidayType_Full)
-
- CalInsertBankholiday(DateSerial(YearInt%, 4, 30), "Koninginnedag", cHolidayType_Full)
-
- ' Bevrijdingsdag is celebrated every 5th year
- If YearInt% Mod 5 = 0 then
- CalInsertBankholiday(DateSerial(YearInt%, 5, 5), "Bevrijdingsdag", cHolidayType_Full)
- End if
-
- CalInsertBankholiday(DateSerial(YearInt%, 12, 6), "Sinterklaas", cHolidayType_Half)
-
- CalInsertBankholiday(DateSerial(YearInt%, 12, 25), "1e Kerstdag", cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt%, 12, 26), "2e Kerstdag", cHolidayType_Full)
- End Sub
-
-
- </script:module>