bug-gcal
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Add Good Friday to the list of Czech holidays


From: Martin Mareš
Subject: [PATCH] Add Good Friday to the list of Czech holidays
Date: Thu, 28 Dec 2023 17:38:13 +0100

It is a state holiday since 2016.
---
 src/hd-data2.c | 35 +++++++++++++++++++----------------
 1 file changed, 19 insertions(+), 16 deletions(-)

diff --git a/src/hd-data2.c b/src/hd-data2.c
index c624265..4c9a071 100644
--- a/src/hd-data2.c
+++ b/src/hd-data2.c
@@ -4164,29 +4164,32 @@ cz_hdy (init_data, detected, easter, year, hd_elems, 
fday, count)
    * I've tried to capture the somewhat complex evolution of the Czech 
holidays,
    * but so far I have only a little information on the state before year 1975,
    * so if you know more, please let me know.
-   *                           Martin Mares <mj@ucw.cz>, September 2003
+   *                           Martin Mares <mj@ucw.cz>, December 2023
    *
    * This is a brief sketch of the history:
    *
-   * Law:              56/75   141/88  167/90  204/90  218/91  245/00
-   * Effective:        23.6.75 21.9.88 10.5.90 18.5.90 31.5.91 9.8.00
-   *  1. 1.            +       +       +       +       +       +
-   *  Easter           +       +       +       +       +       +
-   *  1. 5.            +       +       +       +       +       +
-   *  5. 5.
-   *  8. 5.                                            +       +
+   * Law:              56/75   141/88  167/90  204/90  218/91  245/00 359/2015
+   * Effective:        23.6.75 21.9.88 10.5.90 18.5.90 31.5.91 9.8.00 21.12.15
+   *  1. 1.            +       +       +       +       +       +      +
+   *  Good Friday                                                     +
+   *  Easter Monday    +       +       +       +       +       +      +
+   *  1. 5.            +       +       +       +       +       +      +
+   *  8. 5.                                            +       +      +
    *  9. 5.            +       +       +       +
-   *  5. 7.                            +       +       +       +
-   *  6. 7.                                    +       +       +
-   * 28. 9.                                                    +
-   * 28.10.                    +       +       +       +       +
-   * 17.11.                                                    +
-   * 24.12.                            +       +       +       +
-   * 25.12.            +       +       +       +       +       +
-   * 26.12.            +       +       +       +       +       +
+   *  5. 7.                            +       +       +       +      +
+   *  6. 7.                                    +       +       +      +
+   * 28. 9.                                                    +      +
+   * 28.10.                    +       +       +       +       +      +
+   * 17.11.                                                    +      +
+   * 24.12.                            +       +       +       +      +
+   * 25.12.            +       +       +       +       +       +      +
+   * 26.12.            +       +       +       +       +       +      +
    */
   holiday (*init_data, detected, _(hd_text[HD_NEW_YEARS_DAY].ht_text),
           ptr_cc_id, "+", 1, 1, year, hd_elems, fday, count);
+  if (year >= 2016)
+    holiday (*init_data, detected, _(hd_text[HD_GOOD_FRIDAY].ht_text),
+            ptr_cc_id, "+", easter - 2, 0, year, hd_elems, fday, count);
   holiday (*init_data, detected, _(hd_text[HD_EASTER_MONDAY].ht_text),
           ptr_cc_id, "+", easter + 1, 0, year, hd_elems, fday, count);
   holiday (*init_data, detected, _(hd_text[HD_EASTER_SUNDAY].ht_text),
-- 
2.39.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]