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="HolidayFrance" script:language="StarBasic">Option Explicit
-
- Sub Main
- Call CalAutopilotTable()
- End Sub
-
-
-
- Sub FindWholeYearHolidays_FRANCE(ByVal YearInt%)
-
- Dim lDate&
- Dim Easter$
-
- CalInsertBankholiday(DateSerial(YearInt%, 1, 1), "Jour de l'an", cHolidayType_Full)
-
- ' Easter, get it with look-up table
- lDate& = CalEasterTable&(YearInt%)
- CalInsertBankholiday(lDate&, "Pâques", cHolidayType_Full)
-
- ' Jesus Skydiving
- lDate& = lDate& + 39
- CalInsertBankholiday(lDate&, "Ascension", cHolidayType_Full)
-
- lDate& = lDate& + 10
- CalInsertBankholiday(lDate&, "Pentec├┤te", cHolidayType_Full)
-
- CalInsertBankholiday(DateSerial(YearInt%, 5, 1), "Fête du travail", cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt%, 5, 8), "Victoire 1945", cHolidayType_Full)
-
- CalInsertBankholiday(DateSerial(YearInt%, 7, 14), "Fête Nationale", cHolidayType_Full)
-
- CalInsertBankholiday(DateSerial(YearInt%, 8, 15), "Assomption", cHolidayType_Full)
-
- CalInsertBankholiday(DateSerial(YearInt%, 11, 1), "Toussaint", cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt%, 11, 11), "Armistice ou Victoire 1918", cHolidayType_Full)
-
- CalInsertBankholiday(DateSerial(YearInt%, 12, 25), "Noël", cHolidayType_Full)
-
- End Sub
- </script:module>