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="HolidayItalia" script:language="StarBasic">Option Explicit
-
- Sub Main
- Call CalAutopilotTable()
- End Sub
-
- Sub FindWholeYearHolidays_ITA(ByVal YearInt%)
- Dim lDate&
-
- CalInsertBankholiday(DateSerial(YearInt%, 1, 1), "Capodanno", cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt%, 1, 6), "Epifania", cHolidayType_Full)
-
- CalInsertBankholiday(DateSerial(YearInt%, 4, 25), "Festa della liberazione", cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt%, 8, 15), "Ferragusto", cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt%, 11, 1), "Tutti i Santi", cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt%, 12, 8), "Immacolata concezione", cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt%, 12, 25), "Natale", cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt%, 12, 26), "Santo Stefano", cHolidayType_Full)
-
- ' Easter, get it with look-up table
- lDate& = CalEasterTable&(YearInt%)
- CalInsertBankholiday(lDate&, "Pasqua", cHolidayType_Full)
- CalInsertBankholiday(lDate&+1, "Lunedì dell'Angelo", cHolidayType_Full)
- End Sub</script:module>