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="HolidaySpain" script:language="StarBasic">Option Explicit
-
- Sub Main
- Call CalAutopilotTable()
- End Sub
-
-
-
- Sub FindWholeYearHolidays_SPAIN(ByVal YearInt%)
-
- Dim lDate&
-
- CalInsertBankholiday(DateSerial(YearInt%, 1, 1), "A├▒o Nuevo", cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt%, 1, 6), "Reyes", cHolidayType_Full)
-
- ' Easter, get it with look-up table
- lDate& = CalEasterTable&(YearInt%)
- CalInsertBankholiday(lDate&-2, "Viernes Santo", cHolidayType_Full)
- CalInsertBankholiday(lDate&+1, "Lunes de Pascua Florida", cHolidayType_Full)
-
- CalInsertBankholiday(DateSerial(YearInt%, 5, 1), "Fiesta del Trabajo", cHolidayType_Full)
-
- CalInsertBankholiday(DateSerial(YearInt%, 8, 15), "La Asunci├│n", cHolidayType_Full)
-
- CalInsertBankholiday(DateSerial(YearInt%, 10, 12), "Fiesta de la Hispanidad", cHolidayType_Full)
-
- CalInsertBankholiday(DateSerial(YearInt%, 11, 1), "Todos los Santos", cHolidayType_Full)
-
- CalInsertBankholiday(DateSerial(YearInt%, 12, 6), "Día de la Constitución", cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt%, 12, 8), "La Inmaculada", cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt%, 12, 25), "Navidad", cHolidayType_Full)
-
- End Sub
- </script:module>