holidays 3.3.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +44 -0
- data/CONTRIBUTING.md +37 -0
- data/README.md +16 -25
- data/REFERENCES +4 -1
- data/Rakefile +38 -8
- data/benchmark.rb +8 -0
- data/definitions/README.md +187 -8
- data/definitions/ar.yaml +2 -1
- data/definitions/at.yaml +17 -13
- data/definitions/au.yaml +65 -60
- data/definitions/be_fr.yaml +14 -10
- data/definitions/be_nl.yaml +8 -4
- data/definitions/bg.yaml +12 -6
- data/definitions/br.yaml +6 -3
- data/definitions/ca.yaml +8 -6
- data/definitions/ch.yaml +21 -15
- data/definitions/cl.yaml +4 -2
- data/definitions/cr.yaml +5 -3
- data/definitions/cz.yaml +4 -2
- data/definitions/de.yaml +25 -14
- data/definitions/dk.yaml +26 -17
- data/definitions/ecb_target.yaml +4 -2
- data/definitions/el.yaml +23 -18
- data/definitions/es.yaml +31 -28
- data/definitions/federal_reserve.yaml +12 -12
- data/definitions/fedex.yaml +6 -6
- data/definitions/fi.yaml +26 -25
- data/definitions/fr.yaml +8 -4
- data/definitions/gb.yaml +9 -7
- data/definitions/hr.yaml +8 -6
- data/definitions/hu.yaml +8 -6
- data/definitions/ie.yaml +17 -16
- data/definitions/index.yaml +1 -1
- data/definitions/is.yaml +29 -19
- data/definitions/it.yaml +10 -9
- data/definitions/jp.yaml +92 -44
- data/definitions/li.yaml +25 -20
- data/definitions/lt.yaml +2 -1
- data/definitions/ma.yaml +7 -7
- data/definitions/mx.yaml +11 -11
- data/definitions/nerc.yaml +6 -6
- data/definitions/nl.yaml +22 -18
- data/definitions/no.yaml +19 -11
- data/definitions/north_america_informal.yaml +6 -6
- data/definitions/nyse.yaml +9 -8
- data/definitions/nz.yaml +33 -29
- data/definitions/ph.yaml +15 -8
- data/definitions/pl.yaml +27 -17
- data/definitions/pt.yaml +4 -2
- data/definitions/ro.yaml +21 -18
- data/definitions/se.yaml +24 -18
- data/definitions/sg.yaml +10 -9
- data/definitions/si.yaml +4 -2
- data/definitions/sk.yaml +4 -2
- data/definitions/united_nations.yaml +12 -12
- data/definitions/ups.yaml +6 -6
- data/definitions/us.yaml +12 -11
- data/definitions/ve.yaml +8 -4
- data/definitions/vi.yaml +6 -6
- data/definitions/za.yaml +26 -24
- data/holidays.gemspec +3 -1
- data/lib/generated_definitions/MANIFEST +1 -1
- data/lib/generated_definitions/ar.rb +8 -6
- data/lib/generated_definitions/at.rb +11 -9
- data/lib/generated_definitions/au.rb +75 -99
- data/lib/generated_definitions/be.rb +12 -10
- data/lib/generated_definitions/be_fr.rb +12 -10
- data/lib/generated_definitions/be_nl.rb +12 -10
- data/lib/generated_definitions/bg.rb +14 -13
- data/lib/generated_definitions/br.rb +11 -9
- data/lib/generated_definitions/ca.rb +20 -20
- data/lib/generated_definitions/ch.rb +41 -44
- data/lib/generated_definitions/cl.rb +9 -7
- data/lib/generated_definitions/cr.rb +9 -7
- data/lib/generated_definitions/cz.rb +9 -6
- data/lib/generated_definitions/de.rb +25 -25
- data/lib/generated_definitions/dk.rb +17 -15
- data/lib/generated_definitions/ecb_target.rb +9 -7
- data/lib/generated_definitions/el.rb +13 -11
- data/lib/generated_definitions/es.rb +35 -33
- data/lib/generated_definitions/europe.rb +234 -247
- data/lib/generated_definitions/federal_reserve.rb +11 -9
- data/lib/generated_definitions/fedex.rb +42 -0
- data/lib/generated_definitions/fi.rb +32 -36
- data/lib/generated_definitions/fr.rb +12 -10
- data/lib/generated_definitions/gb.rb +15 -13
- data/lib/generated_definitions/hr.rb +10 -8
- data/lib/generated_definitions/hu.rb +9 -7
- data/lib/generated_definitions/ie.rb +17 -17
- data/lib/generated_definitions/is.rb +26 -26
- data/lib/generated_definitions/it.rb +9 -7
- data/lib/generated_definitions/jp.rb +112 -89
- data/lib/generated_definitions/li.rb +14 -12
- data/lib/generated_definitions/lt.rb +9 -7
- data/lib/generated_definitions/ma.rb +7 -5
- data/lib/generated_definitions/mx.rb +7 -5
- data/lib/generated_definitions/nerc.rb +10 -8
- data/lib/generated_definitions/nl.rb +15 -13
- data/lib/generated_definitions/no.rb +16 -14
- data/lib/generated_definitions/north_america.rb +34 -37
- data/lib/generated_definitions/nyse.rb +10 -8
- data/lib/generated_definitions/nz.rb +40 -40
- data/lib/generated_definitions/ph.rb +17 -13
- data/lib/generated_definitions/pl.rb +25 -27
- data/lib/generated_definitions/pt.rb +10 -8
- data/lib/generated_definitions/ro.rb +11 -9
- data/lib/generated_definitions/scandinavia.rb +92 -102
- data/lib/generated_definitions/se.rb +25 -27
- data/lib/generated_definitions/sg.rb +11 -9
- data/lib/generated_definitions/si.rb +10 -8
- data/lib/generated_definitions/sk.rb +9 -7
- data/lib/generated_definitions/united_nations.rb +7 -5
- data/lib/generated_definitions/ups.rb +13 -12
- data/lib/generated_definitions/us.rb +20 -21
- data/lib/generated_definitions/ve.rb +11 -9
- data/lib/generated_definitions/vi.rb +7 -5
- data/lib/generated_definitions/za.rb +19 -17
- data/lib/holidays.rb +20 -83
- data/lib/holidays/date_calculator/weekend_modifier.rb +22 -5
- data/lib/holidays/definition/context/generator.rb +67 -29
- data/lib/holidays/definition/context/merger.rb +8 -8
- data/lib/holidays/definition/decorator/custom_method_proc.rb +28 -0
- data/lib/holidays/definition/decorator/custom_method_source.rb +30 -0
- data/lib/holidays/definition/entity/custom_method.rb +11 -0
- data/lib/holidays/definition/parser/custom_method.rb +69 -0
- data/lib/holidays/definition/repository/custom_methods.rb +27 -0
- data/lib/holidays/definition/repository/holidays_by_month.rb +1 -1
- data/lib/holidays/definition/repository/{proc_cache.rb → proc_result_cache.rb} +19 -4
- data/lib/holidays/definition/validator/custom_method.rb +31 -0
- data/lib/holidays/definition_factory.rb +42 -6
- data/lib/holidays/errors.rb +6 -0
- data/lib/holidays/load_all_definitions.rb +57 -0
- data/lib/holidays/option/context/parse_options.rb +26 -16
- data/lib/holidays/option_factory.rb +1 -0
- data/lib/holidays/use_case/context/between.rb +41 -14
- data/lib/holidays/use_case_factory.rb +2 -1
- data/lib/holidays/version.rb +1 -1
- data/test/data/test_single_custom_holiday_with_custom_procs.yaml +24 -0
- data/test/defs/test_defs_at.rb +1 -1
- data/test/defs/test_defs_au.rb +3 -2
- data/test/defs/test_defs_cr.rb +1 -0
- data/test/defs/test_defs_cz.rb +1 -0
- data/test/defs/test_defs_dk.rb +2 -2
- data/test/defs/test_defs_el.rb +7 -6
- data/test/defs/test_defs_europe.rb +40 -33
- data/test/defs/test_defs_fedex.rb +24 -0
- data/test/defs/test_defs_fi.rb +4 -3
- data/test/defs/test_defs_hr.rb +2 -2
- data/test/defs/test_defs_hu.rb +2 -2
- data/test/defs/test_defs_is.rb +2 -1
- data/test/defs/test_defs_it.rb +2 -1
- data/test/defs/test_defs_jp.rb +1 -1
- data/test/defs/test_defs_li.rb +1 -1
- data/test/defs/test_defs_ma.rb +2 -1
- data/test/defs/test_defs_mx.rb +4 -3
- data/test/defs/test_defs_nl.rb +7 -6
- data/test/defs/test_defs_no.rb +1 -0
- data/test/defs/test_defs_north_america.rb +4 -3
- data/test/defs/test_defs_nyse.rb +2 -1
- data/test/defs/test_defs_pl.rb +1 -0
- data/test/defs/test_defs_ro.rb +11 -11
- data/test/defs/test_defs_scandinavia.rb +12 -8
- data/test/defs/test_defs_se.rb +3 -2
- data/test/defs/test_defs_sg.rb +2 -1
- data/test/defs/test_defs_vi.rb +1 -1
- data/test/defs/test_defs_za.rb +3 -2
- data/test/holidays/date_calculator/test_weekend_modifier.rb +11 -0
- data/test/holidays/definition/context/test_generator.rb +64 -5
- data/test/holidays/definition/context/test_merger.rb +5 -2
- data/test/holidays/definition/decorator/test_custom_method_proc.rb +113 -0
- data/test/holidays/definition/decorator/test_custom_method_source.rb +96 -0
- data/test/holidays/definition/parser/test_custom_method.rb +79 -0
- data/test/holidays/definition/repository/test_custom_methods.rb +43 -0
- data/test/holidays/definition/repository/test_holidays_by_month.rb +0 -32
- data/test/holidays/definition/repository/test_proc_result_cache.rb +84 -0
- data/test/holidays/definition/validator/test_custom_method.rb +89 -0
- data/test/holidays/option/context/test_parse_options.rb +5 -0
- data/test/holidays/test_definition_factory.rb +17 -2
- data/test/holidays/use_case/context/test_between.rb +2 -0
- data/test/test_all_regions.rb +7 -49
- data/test/test_custom_holidays.rb +8 -2
- data/test/test_helper.rb +9 -2
- data/test/test_holidays.rb +9 -29
- metadata +46 -11
- data/lib/generated_definitions/fed_ex.rb +0 -41
- data/test/holidays/definition/repository/test_proc_cache.rb +0 -29
- data/test/test_parse_definitions.rb +0 -30
@@ -10,7 +10,7 @@ module Holidays
|
|
10
10
|
# require 'holidays'
|
11
11
|
# require 'generated_definitions/ecb_target'
|
12
12
|
#
|
13
|
-
# All the definitions are available at https://github.com/
|
13
|
+
# All the definitions are available at https://github.com/holidays/holidays
|
14
14
|
module ECB_TARGET # :nodoc:
|
15
15
|
def self.defined_regions
|
16
16
|
[:ecb_target]
|
@@ -18,17 +18,19 @@ module Holidays
|
|
18
18
|
|
19
19
|
def self.holidays_by_month
|
20
20
|
{
|
21
|
-
0 => [{:function =>
|
22
|
-
{:function =>
|
21
|
+
0 => [{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Good Friday", :regions => [:ecb_target]},
|
22
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Easter Monday", :regions => [:ecb_target]}],
|
23
23
|
1 => [{:mday => 1, :name => "New Year's Day", :regions => [:ecb_target]}],
|
24
24
|
5 => [{:mday => 1, :name => "Labour Day", :regions => [:ecb_target]}],
|
25
25
|
12 => [{:mday => 25, :name => "Christmas Day", :regions => [:ecb_target]},
|
26
26
|
{:mday => 26, :name => "Christmas Holiday", :regions => [:ecb_target]}]
|
27
27
|
}
|
28
28
|
end
|
29
|
-
end
|
30
|
-
|
31
29
|
|
30
|
+
def self.custom_methods
|
31
|
+
{
|
32
|
+
|
33
|
+
}
|
34
|
+
end
|
35
|
+
end
|
32
36
|
end
|
33
|
-
|
34
|
-
Holidays.merge_defs(Holidays::ECB_TARGET.defined_regions, Holidays::ECB_TARGET.holidays_by_month)
|
@@ -10,7 +10,7 @@ module Holidays
|
|
10
10
|
# require 'holidays'
|
11
11
|
# require 'generated_definitions/el'
|
12
12
|
#
|
13
|
-
# All the definitions are available at https://github.com/
|
13
|
+
# All the definitions are available at https://github.com/holidays/holidays
|
14
14
|
module EL # :nodoc:
|
15
15
|
def self.defined_regions
|
16
16
|
[:el]
|
@@ -18,12 +18,12 @@ module Holidays
|
|
18
18
|
|
19
19
|
def self.holidays_by_month
|
20
20
|
{
|
21
|
-
0 => [{:function =>
|
22
|
-
{:function =>
|
23
|
-
{:function =>
|
24
|
-
{:function =>
|
25
|
-
{:function =>
|
26
|
-
{:function =>
|
21
|
+
0 => [{:function => "orthodox_easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Μεγάλη Παρασκευή", :regions => [:el]},
|
22
|
+
{:function => "orthodox_easter(year)", :function_arguments => [:year], :function_modifier => -1, :name => "Μεγάλο Σάββατο", :regions => [:el]},
|
23
|
+
{:function => "orthodox_easter(year)", :function_arguments => [:year], :name => "Κυριακή του Πάσχα", :regions => [:el]},
|
24
|
+
{:function => "orthodox_easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Δευτέρα του Πάσχα", :regions => [:el]},
|
25
|
+
{:function => "orthodox_easter(year)", :function_arguments => [:year], :function_modifier => -48, :name => "Καθαρά Δευτέρα", :regions => [:el]},
|
26
|
+
{:function => "orthodox_easter(year)", :function_arguments => [:year], :function_modifier => 50, :name => "Αγίου Πνεύματος", :regions => [:el]}],
|
27
27
|
1 => [{:mday => 1, :name => "Πρωτοχρονιά", :regions => [:el]},
|
28
28
|
{:mday => 6, :name => "Θεοφάνεια", :regions => [:el]}],
|
29
29
|
3 => [{:mday => 25, :name => "Επέτειος της Επανάστασης του 1821", :regions => [:el]}],
|
@@ -34,9 +34,11 @@ module Holidays
|
|
34
34
|
{:mday => 26, :name => "Δεύτερη ημέρα των Χριστουγέννων", :regions => [:el]}]
|
35
35
|
}
|
36
36
|
end
|
37
|
-
end
|
38
|
-
|
39
37
|
|
38
|
+
def self.custom_methods
|
39
|
+
{
|
40
|
+
|
41
|
+
}
|
42
|
+
end
|
43
|
+
end
|
40
44
|
end
|
41
|
-
|
42
|
-
Holidays.merge_defs(Holidays::EL.defined_regions, Holidays::EL.holidays_by_month)
|
@@ -10,7 +10,7 @@ module Holidays
|
|
10
10
|
# require 'holidays'
|
11
11
|
# require 'generated_definitions/es'
|
12
12
|
#
|
13
|
-
# All the definitions are available at https://github.com/
|
13
|
+
# All the definitions are available at https://github.com/holidays/holidays
|
14
14
|
module ES # :nodoc:
|
15
15
|
def self.defined_regions
|
16
16
|
[:es_pv, :es_na, :es_an, :es_ib, :es_cm, :es_mu, :es_m, :es_ar, :es_cl, :es_cn, :es_lo, :es_ga, :es_ce, :es_o, :es_ex, :es, :es_ct, :es_v, :es_vc]
|
@@ -18,40 +18,42 @@ module Holidays
|
|
18
18
|
|
19
19
|
def self.holidays_by_month
|
20
20
|
{
|
21
|
-
0 => [{:function =>
|
22
|
-
{:function =>
|
23
|
-
{:function =>
|
24
|
-
1 => [{:mday => 1, :observed =>
|
25
|
-
{:mday => 6, :observed =>
|
26
|
-
2 => [{:mday => 28, :observed =>
|
27
|
-
3 => [{:mday => 1, :observed =>
|
28
|
-
{:mday => 19, :observed =>
|
29
|
-
4 => [{:mday => 23, :observed =>
|
30
|
-
{:mday => 23, :observed =>
|
31
|
-
5 => [{:mday => 1, :observed =>
|
32
|
-
{:mday => 2, :observed =>
|
33
|
-
{:mday => 30, :observed =>
|
34
|
-
{:mday => 31, :observed =>
|
35
|
-
6 => [{:mday => 9, :observed =>
|
36
|
-
{:mday => 9, :observed =>
|
37
|
-
7 => [{:mday => 23, :observed =>
|
38
|
-
8 => [{:mday => 15, :observed =>
|
39
|
-
9 => [{:mday => 2, :observed =>
|
40
|
-
{:mday => 8, :observed =>
|
21
|
+
0 => [{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -3, :name => "Jueves Santo", :regions => [:es_pv, :es_na, :es_an, :es_ib, :es_cm, :es_mu, :es_m, :es_ar, :es_cl, :es_cn, :es_lo, :es_ga, :es_ce, :es_o, :es_ex]},
|
22
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Viernes Santo", :regions => [:es]},
|
23
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Lunes de Pascua", :regions => [:es_pv, :es_ct, :es_na, :es_v, :es_vc]}],
|
24
|
+
1 => [{:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Año Nuevo", :regions => [:es]},
|
25
|
+
{:mday => 6, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de Reyes", :regions => [:es]}],
|
26
|
+
2 => [{:mday => 28, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de Andalucía", :regions => [:es_an]}],
|
27
|
+
3 => [{:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de las Islas Baleares", :regions => [:es_ib]},
|
28
|
+
{:mday => 19, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "San José", :regions => [:es_v, :es_vc, :es_cm, :es_mu, :es_m]}],
|
29
|
+
4 => [{:mday => 23, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de Castilla y León", :regions => [:es_cl]},
|
30
|
+
{:mday => 23, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "San Jorge, Día de Aragón", :regions => [:es_ar]}],
|
31
|
+
5 => [{:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día del Trabajador", :regions => [:es]},
|
32
|
+
{:mday => 2, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Fiesta de la Comunidad", :regions => [:es_m]},
|
33
|
+
{:mday => 30, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de las Canarias", :regions => [:es_cn]},
|
34
|
+
{:mday => 31, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de la Región Castilla-La Mancha", :regions => [:es_cm]}],
|
35
|
+
6 => [{:mday => 9, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de la Región de Murcia", :regions => [:es_mu]},
|
36
|
+
{:mday => 9, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de La Rioja", :regions => [:es_lo]}],
|
37
|
+
7 => [{:mday => 23, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Santiago Apostol", :regions => [:es_ga]}],
|
38
|
+
8 => [{:mday => 15, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Asunción", :regions => [:es]}],
|
39
|
+
9 => [{:mday => 2, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de Ceuta", :regions => [:es_ce]},
|
40
|
+
{:mday => 8, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de Asturias", :regions => [:es_o]},
|
41
41
|
{:mday => 8, :name => "Día de Extremadura", :regions => [:es_ex]},
|
42
|
-
{:mday => 11, :observed =>
|
43
|
-
10 => [{:mday => 9, :observed =>
|
44
|
-
{:mday => 12, :observed =>
|
45
|
-
11 => [{:mday => 1, :observed =>
|
46
|
-
12 => [{:mday => 6, :observed =>
|
47
|
-
{:mday => 8, :observed =>
|
48
|
-
{:mday => 25, :observed =>
|
49
|
-
{:mday => 26, :observed =>
|
42
|
+
{:mday => 11, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Fiesta Nacional de Cataluña", :regions => [:es_ct]}],
|
43
|
+
10 => [{:mday => 9, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de Valencia", :regions => [:es_vc, :es_v]},
|
44
|
+
{:mday => 12, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de la Hispanidad", :regions => [:es]}],
|
45
|
+
11 => [{:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Todos los Santos", :regions => [:es]}],
|
46
|
+
12 => [{:mday => 6, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de la Constitución", :regions => [:es]},
|
47
|
+
{:mday => 8, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Inmaculada Concepción", :regions => [:es]},
|
48
|
+
{:mday => 25, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Navidad del Señor", :regions => [:es]},
|
49
|
+
{:mday => 26, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "San Esteban", :regions => [:es_ib, :es_ct]}]
|
50
50
|
}
|
51
51
|
end
|
52
|
-
end
|
53
|
-
|
54
52
|
|
53
|
+
def self.custom_methods
|
54
|
+
{
|
55
|
+
|
56
|
+
}
|
57
|
+
end
|
58
|
+
end
|
55
59
|
end
|
56
|
-
|
57
|
-
Holidays.merge_defs(Holidays::ES.defined_regions, Holidays::ES.holidays_by_month)
|
@@ -10,7 +10,7 @@ module Holidays
|
|
10
10
|
# require 'holidays'
|
11
11
|
# require 'generated_definitions/europe'
|
12
12
|
#
|
13
|
-
# All the definitions are available at https://github.com/
|
13
|
+
# All the definitions are available at https://github.com/holidays/holidays
|
14
14
|
module EUROPE # :nodoc:
|
15
15
|
def self.defined_regions
|
16
16
|
[:at, :be_fr, :be_nl, :ch_zh, :ch_be, :ch_lu, :ch_ur, :ch_sz, :ch_ow, :ch_nw, :ch_gl, :ch_zg, :ch_fr, :ch_so, :ch_bs, :ch_bl, :ch_sh, :ch_ar, :ch_ai, :ch_sg, :ch_gr, :ch_ag, :ch_tg, :ch_ti, :ch_vd, :ch_ne, :ch_ge, :ch_ju, :ch_vs, :ch, :cz, :dk, :de, :de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn_aux, :de_th_aux, :de_sn, :de_st, :de_by_aux, :de_bb, :de_mv, :de_th, :el, :es_pv, :es_na, :es_an, :es_ib, :es_cm, :es_mu, :es_m, :es_ar, :es_cl, :es_cn, :es_lo, :es_ga, :es_ce, :es_o, :es_ex, :es, :es_ct, :es_v, :es_vc, :fr, :gb, :gb_eng, :gb_wls, :gb_eaw, :gb_nir, :gb_sct, :gb_con, :je, :gb_jsy, :gg, :gb_gsy, :im, :gb_iom, :hr, :hu, :ie, :is, :it, :li, :lt, :nl, :no, :pl, :pt, :ro, :sk, :si, :bg_en, :bg_bg]
|
@@ -18,139 +18,139 @@ module Holidays
|
|
18
18
|
|
19
19
|
def self.holidays_by_month
|
20
20
|
{
|
21
|
-
0 => [{:function =>
|
22
|
-
{:function =>
|
23
|
-
{:function =>
|
24
|
-
{:function =>
|
25
|
-
{:function =>
|
26
|
-
{:function =>
|
27
|
-
{:function =>
|
28
|
-
{:function =>
|
29
|
-
{:function =>
|
30
|
-
{:function =>
|
31
|
-
{:function =>
|
32
|
-
{:function =>
|
33
|
-
{:function =>
|
34
|
-
{:function =>
|
35
|
-
{:function =>
|
36
|
-
{:function =>
|
37
|
-
{:function =>
|
38
|
-
{:function =>
|
39
|
-
{:function =>
|
40
|
-
{:function =>
|
41
|
-
{:function =>
|
42
|
-
{:function =>
|
43
|
-
{:function =>
|
44
|
-
{:function =>
|
45
|
-
{:function =>
|
46
|
-
{:function =>
|
47
|
-
{:function =>
|
48
|
-
{:function =>
|
49
|
-
{:function =>
|
50
|
-
{:function =>
|
51
|
-
{:function =>
|
52
|
-
{:function =>
|
53
|
-
{:function =>
|
54
|
-
{:function =>
|
55
|
-
{:function =>
|
56
|
-
{:function =>
|
57
|
-
{:function =>
|
58
|
-
{:function =>
|
59
|
-
{:function =>
|
60
|
-
{:function =>
|
61
|
-
{:function =>
|
62
|
-
{:function =>
|
63
|
-
{:function =>
|
64
|
-
{:function =>
|
65
|
-
{:function =>
|
66
|
-
{:function =>
|
67
|
-
{:function =>
|
68
|
-
{:function =>
|
69
|
-
{:function =>
|
70
|
-
{:function =>
|
71
|
-
{:function =>
|
72
|
-
{:function =>
|
73
|
-
{:function =>
|
74
|
-
{:function =>
|
75
|
-
{:function =>
|
76
|
-
{:function =>
|
77
|
-
{:function =>
|
78
|
-
{:function =>
|
79
|
-
{:function =>
|
80
|
-
{:function =>
|
81
|
-
{:function =>
|
82
|
-
{:function =>
|
83
|
-
{:function =>
|
84
|
-
{:function =>
|
85
|
-
{:function =>
|
86
|
-
{:function =>
|
87
|
-
{:function =>
|
88
|
-
{:function =>
|
89
|
-
{:function =>
|
90
|
-
{:function =>
|
91
|
-
{:function =>
|
92
|
-
{:function =>
|
93
|
-
{:function =>
|
94
|
-
{:function =>
|
95
|
-
{:function =>
|
96
|
-
{:function =>
|
97
|
-
{:function =>
|
98
|
-
{:function =>
|
99
|
-
{:function =>
|
100
|
-
{:function =>
|
101
|
-
{:function =>
|
102
|
-
{:function =>
|
103
|
-
{:function =>
|
104
|
-
{:function =>
|
105
|
-
{:function =>
|
106
|
-
{:function =>
|
107
|
-
{:function =>
|
108
|
-
{:function =>
|
109
|
-
{:function =>
|
110
|
-
{:function =>
|
111
|
-
{:function =>
|
112
|
-
{:function =>
|
113
|
-
{:function =>
|
114
|
-
{:function =>
|
115
|
-
{:function =>
|
116
|
-
{:function =>
|
117
|
-
{:function =>
|
118
|
-
{:function =>
|
119
|
-
{:function =>
|
120
|
-
{:function =>
|
121
|
-
{:function =>
|
122
|
-
{:function =>
|
123
|
-
{:function =>
|
124
|
-
{:function =>
|
125
|
-
{:function =>
|
126
|
-
{:function =>
|
127
|
-
{:function =>
|
128
|
-
{:function =>
|
129
|
-
{:function =>
|
130
|
-
{:function =>
|
131
|
-
{:function =>
|
132
|
-
{:function =>
|
133
|
-
{:function =>
|
134
|
-
{:function =>
|
135
|
-
{:function =>
|
136
|
-
{:function =>
|
137
|
-
{:function =>
|
138
|
-
{:function =>
|
139
|
-
{:function =>
|
140
|
-
{:function =>
|
141
|
-
{:function =>
|
142
|
-
{:function =>
|
143
|
-
{:function =>
|
144
|
-
{:function =>
|
145
|
-
{:function =>
|
146
|
-
{:function =>
|
147
|
-
{:function =>
|
148
|
-
{:function =>
|
149
|
-
{:function =>
|
150
|
-
{:function =>
|
151
|
-
{:function =>
|
152
|
-
{:function =>
|
153
|
-
{:function =>
|
21
|
+
0 => [{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Ostermontag", :regions => [:at]},
|
22
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 39, :name => "Christi Himmelfahrt", :regions => [:at]},
|
23
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 50, :name => "Pfingstmontag", :regions => [:at]},
|
24
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 60, :name => "Fronleichnam", :regions => [:at]},
|
25
|
+
{:function => "easter(year)", :function_arguments => [:year], :name => "Pâques", :regions => [:be_fr]},
|
26
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Lundi de Pâques", :regions => [:be_fr]},
|
27
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 39, :name => "Ascension", :regions => [:be_fr]},
|
28
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 49, :name => "Pentecôte", :regions => [:be_fr]},
|
29
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 50, :name => "Lundi de Pentecôte", :regions => [:be_fr]},
|
30
|
+
{:function => "easter(year)", :function_arguments => [:year], :name => "Pasen", :regions => [:be_nl]},
|
31
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Paasmaandag", :regions => [:be_nl]},
|
32
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 39, :name => "O.H. Hemelvaart", :regions => [:be_nl]},
|
33
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 49, :name => "Pinksteren", :regions => [:be_nl]},
|
34
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 50, :name => "Pinkstermaandag", :regions => [:be_nl]},
|
35
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Karfreitag", :regions => [:ch_zh, :ch_be, :ch_lu, :ch_ur, :ch_sz, :ch_ow, :ch_nw, :ch_gl, :ch_zg, :ch_fr, :ch_so, :ch_bs, :ch_bl, :ch_sh, :ch_ar, :ch_ai, :ch_sg, :ch_gr, :ch_ag, :ch_tg, :ch_ti, :ch_vd, :ch_ne, :ch_ge, :ch_ju]},
|
36
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Ostermontag", :regions => [:ch_zh, :ch_be, :ch_lu, :ch_ur, :ch_sz, :ch_ow, :ch_nw, :ch_gl, :ch_zg, :ch_fr, :ch_so, :ch_bs, :ch_bl, :ch_sh, :ch_ar, :ch_ai, :ch_sg, :ch_gr, :ch_ag, :ch_tg, :ch_ti, :ch_vd, :ch_vs, :ch_ge, :ch_ju]},
|
37
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 39, :name => "Auffahrt", :regions => [:ch]},
|
38
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 50, :name => "Pfingstmontag", :regions => [:ch_zh, :ch_be, :ch_lu, :ch_ur, :ch_sz, :ch_ow, :ch_nw, :ch_gl, :ch_zg, :ch_fr, :ch_so, :ch_bs, :ch_bl, :ch_sh, :ch_ar, :ch_ai, :ch_sg, :ch_gr, :ch_ag, :ch_tg, :ch_ti, :ch_vd, :ch_vs, :ch_ge, :ch_ju]},
|
39
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 60, :name => "Fronleichnam", :regions => [:ch_lu, :ch_ur, :ch_sz, :ch_ow, :ch_nw, :ch_zg, :ch_fr, :ch_so, :ch_ai, :ch_ag, :ch_ti, :ch_vs, :ch_ne, :ch_ju]},
|
40
|
+
{:function => "ch_vd_lundi_du_jeune_federal(year)", :function_arguments => [:year], :name => "Lundi du Jeûne fédéral", :regions => [:ch_vd]},
|
41
|
+
{:function => "ch_ge_jeune_genevois(year)", :function_arguments => [:year], :name => "Jeûne genevois", :regions => [:ch_ge]},
|
42
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Velký pátek", :regions => [:cz]},
|
43
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Velikonoční pondělí", :regions => [:cz]},
|
44
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -49, :type => :informal, :name => "Fastelavn", :regions => [:dk]},
|
45
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -7, :type => :informal, :name => "Palmesøndag", :regions => [:dk]},
|
46
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -3, :name => "Skærtorsdag", :regions => [:dk]},
|
47
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Langfredag", :regions => [:dk]},
|
48
|
+
{:function => "easter(year)", :function_arguments => [:year], :name => "Påskedag", :regions => [:dk]},
|
49
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "2. påskedag", :regions => [:dk]},
|
50
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 26, :name => "Store Bededag", :regions => [:dk]},
|
51
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 39, :name => "Kristi Himmelfartsdag", :regions => [:dk]},
|
52
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 49, :name => "Pinsedag", :regions => [:dk]},
|
53
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 50, :name => "2. Pinsedag", :regions => [:dk]},
|
54
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Karfreitag", :regions => [:de]},
|
55
|
+
{:function => "easter(year)", :function_arguments => [:year], :type => :informal, :name => "Ostersonntag", :regions => [:de]},
|
56
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Ostermontag", :regions => [:de]},
|
57
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 39, :name => "Christi Himmelfahrt", :regions => [:de]},
|
58
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 49, :type => :informal, :name => "Pfingstsonntag", :regions => [:de]},
|
59
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 50, :name => "Pfingstmontag", :regions => [:de]},
|
60
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 60, :name => "Fronleichnam", :regions => [:de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn_aux, :de_th_aux]},
|
61
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -52, :type => :informal, :name => "Weiberfastnacht", :regions => [:de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn]},
|
62
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -48, :type => :informal, :name => "Rosenmontag", :regions => [:de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn]},
|
63
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -46, :type => :informal, :name => "Aschermittwoch", :regions => [:de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn]},
|
64
|
+
{:function => "orthodox_easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Μεγάλη Παρασκευή", :regions => [:el]},
|
65
|
+
{:function => "orthodox_easter(year)", :function_arguments => [:year], :function_modifier => -1, :name => "Μεγάλο Σάββατο", :regions => [:el]},
|
66
|
+
{:function => "orthodox_easter(year)", :function_arguments => [:year], :name => "Κυριακή του Πάσχα", :regions => [:el]},
|
67
|
+
{:function => "orthodox_easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Δευτέρα του Πάσχα", :regions => [:el]},
|
68
|
+
{:function => "orthodox_easter(year)", :function_arguments => [:year], :function_modifier => -48, :name => "Καθαρά Δευτέρα", :regions => [:el]},
|
69
|
+
{:function => "orthodox_easter(year)", :function_arguments => [:year], :function_modifier => 50, :name => "Αγίου Πνεύματος", :regions => [:el]},
|
70
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -3, :name => "Jueves Santo", :regions => [:es_pv, :es_na, :es_an, :es_ib, :es_cm, :es_mu, :es_m, :es_ar, :es_cl, :es_cn, :es_lo, :es_ga, :es_ce, :es_o, :es_ex]},
|
71
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Viernes Santo", :regions => [:es]},
|
72
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Lunes de Pascua", :regions => [:es_pv, :es_ct, :es_na, :es_v, :es_vc]},
|
73
|
+
{:function => "easter(year)", :function_arguments => [:year], :type => :informal, :name => "Pâques", :regions => [:fr]},
|
74
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Lundi de Pâques", :regions => [:fr]},
|
75
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 39, :name => "Ascension", :regions => [:fr]},
|
76
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 49, :type => :informal, :name => "Pentecôte", :regions => [:fr]},
|
77
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 50, :name => "Lundi de Pentecôte", :regions => [:fr]},
|
78
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Good Friday", :regions => [:gb]},
|
79
|
+
{:function => "easter(year)", :function_arguments => [:year], :name => "Easter Sunday", :regions => [:gb]},
|
80
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Easter Monday", :regions => [:gb_eng, :gb_wls, :gb_eaw, :gb_nir]},
|
81
|
+
{:function => "easter(year)", :function_arguments => [:year], :name => "Uskrs", :regions => [:hr]},
|
82
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Uskrsni ponedjeljak", :regions => [:hr]},
|
83
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 60, :name => "Tijelovo", :regions => [:hr]},
|
84
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Húsvét hétfő", :regions => [:hu]},
|
85
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 50, :name => "Pünkösd hétfő", :regions => [:hu]},
|
86
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Easter Monday", :regions => [:ie]},
|
87
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -48, :name => "Bolludagur", :regions => [:is]},
|
88
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -47, :name => "Sprengidagur", :regions => [:is]},
|
89
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -46, :name => "Öskudagur", :regions => [:is]},
|
90
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -7, :name => "Pálmasunnudagur", :regions => [:is]},
|
91
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -3, :name => "Skírdagur", :regions => [:is]},
|
92
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Föstudaginn langi", :regions => [:is]},
|
93
|
+
{:function => "easter(year)", :function_arguments => [:year], :name => "Páskadagur", :regions => [:is]},
|
94
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Annar í páskum", :regions => [:is]},
|
95
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 39, :name => "Uppstigningardagur", :regions => [:is]},
|
96
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 49, :name => "Hvítasunnudagur", :regions => [:is]},
|
97
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 50, :name => "Annar í hvítasunnu", :regions => [:is]},
|
98
|
+
{:function => "easter(year)", :function_arguments => [:year], :name => "Pasqua", :regions => [:it]},
|
99
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Lunedì dell'Angelo", :regions => [:it]},
|
100
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -47, :name => "Fasnachtsdienstag", :regions => [:li]},
|
101
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Karfreitag", :regions => [:li]},
|
102
|
+
{:function => "easter(year)", :function_arguments => [:year], :type => :informal, :name => "Ostern", :regions => [:li]},
|
103
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Ostermontag", :regions => [:li]},
|
104
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 39, :name => "Auffahrt", :regions => [:li]},
|
105
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 50, :name => "Pfingstmontag", :regions => [:li]},
|
106
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 60, :name => "Fronleichnam", :regions => [:li]},
|
107
|
+
{:function => "easter(year)", :function_arguments => [:year], :name => "Šv. Velykos", :regions => [:lt]},
|
108
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Antroji Velykų diena", :regions => [:lt]},
|
109
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :type => :informal, :name => "Goede Vrijdag", :regions => [:nl]},
|
110
|
+
{:function => "easter(year)", :function_arguments => [:year], :name => "Eerste Pasen", :regions => [:nl]},
|
111
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Tweede Pasen", :regions => [:nl]},
|
112
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 39, :name => "Hemelvaartsdag", :regions => [:nl]},
|
113
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 49, :name => "Eerste Pinksteren", :regions => [:nl]},
|
114
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 50, :name => "Tweede Pinksteren", :regions => [:nl]},
|
115
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -49, :type => :informal, :name => "Fastelavn", :regions => [:no]},
|
116
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -7, :name => "Palmesøndag", :regions => [:no]},
|
117
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -3, :name => "Skjærtorsdag", :regions => [:no]},
|
118
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Langfredag", :regions => [:no]},
|
119
|
+
{:function => "easter(year)", :function_arguments => [:year], :name => "1. påskedag", :regions => [:no]},
|
120
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "2. påskedag", :regions => [:no]},
|
121
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 39, :name => "Kristi Himmelfartsdag", :regions => [:no]},
|
122
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 49, :name => "1. pinsedag", :regions => [:no]},
|
123
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 50, :name => "2. pinsedag", :regions => [:no]},
|
124
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -52, :type => :informal, :name => "Tłusty Czwartek", :regions => [:pl]},
|
125
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -47, :type => :informal, :name => "Ostatki", :regions => [:pl]},
|
126
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -46, :type => :informal, :name => "Środa Popielcowa", :regions => [:pl]},
|
127
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -7, :type => :informal, :name => "Niedziela Palmowa", :regions => [:pl]},
|
128
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -3, :type => :informal, :name => "Wielki Czwartek", :regions => [:pl]},
|
129
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :type => :informal, :name => "Wielki Piątek", :regions => [:pl]},
|
130
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -1, :type => :informal, :name => "Wielka Sobota", :regions => [:pl]},
|
131
|
+
{:function => "easter(year)", :function_arguments => [:year], :name => "Niedziela Wielkanocna", :regions => [:pl]},
|
132
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Poniedziałek Wielkanocny (Lany Poniedziałek)", :regions => [:pl]},
|
133
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 49, :name => "Zesłanie Ducha Świętego (Zielone Świątki)", :regions => [:pl]},
|
134
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 60, :name => "Uroczystość Najświętszego Ciała i Krwi Pańskiej (Boże Ciało)", :regions => [:pl]},
|
135
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -47, :type => :informal, :name => "Carnaval", :regions => [:pt]},
|
136
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Sexta-feira Santa", :regions => [:pt]},
|
137
|
+
{:function => "easter(year)", :function_arguments => [:year], :name => "Páscoa", :regions => [:pt]},
|
138
|
+
{:function => "orthodox_easter(year)", :function_arguments => [:year], :name => "Paștele - duminică", :regions => [:ro]},
|
139
|
+
{:function => "orthodox_easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Paștele - luni", :regions => [:ro]},
|
140
|
+
{:function => "orthodox_easter(year)", :function_arguments => [:year], :function_modifier => 49, :name => "Rusaliile - 50", :regions => [:ro]},
|
141
|
+
{:function => "orthodox_easter(year)", :function_arguments => [:year], :function_modifier => 50, :name => "Rusaliile - 51", :regions => [:ro]},
|
142
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Veľkonočný pondelok", :regions => [:sk]},
|
143
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Veľký piatok", :regions => [:sk]},
|
144
|
+
{:function => "easter(year)", :function_arguments => [:year], :name => "velikonočna nedelja", :regions => [:si]},
|
145
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 1, :name => "velikonočni ponedeljek", :regions => [:si]},
|
146
|
+
{:function => "easter(year)", :function_arguments => [:year], :function_modifier => 49, :name => "binkošti", :regions => [:si]},
|
147
|
+
{:function => "orthodox_easter_julian(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Good Friday", :regions => [:bg_en]},
|
148
|
+
{:function => "orthodox_easter_julian(year)", :function_arguments => [:year], :function_modifier => -2, :name => "Разпети петък", :regions => [:bg_bg]},
|
149
|
+
{:function => "orthodox_easter_julian(year)", :function_arguments => [:year], :function_modifier => -1, :name => "Holy Saturday", :regions => [:bg_en]},
|
150
|
+
{:function => "orthodox_easter_julian(year)", :function_arguments => [:year], :function_modifier => -1, :name => "Велика събота", :regions => [:bg_bg]},
|
151
|
+
{:function => "orthodox_easter_julian(year)", :function_arguments => [:year], :name => "Easter Sunday", :regions => [:bg_en]},
|
152
|
+
{:function => "orthodox_easter_julian(year)", :function_arguments => [:year], :name => "Възкресение Христово. Великден", :regions => [:bg_bg, :bg_bg]},
|
153
|
+
{:function => "orthodox_easter_julian(year)", :function_arguments => [:year], :function_modifier => 1, :name => "Easter Monday", :regions => [:bg_en]}],
|
154
154
|
1 => [{:mday => 1, :name => "Neujahrstag", :regions => [:at]},
|
155
155
|
{:mday => 6, :name => "Heilige Drei Könige", :regions => [:at]},
|
156
156
|
{:mday => 1, :name => "Jour de l'an", :regions => [:be_fr]},
|
@@ -164,15 +164,15 @@ module Holidays
|
|
164
164
|
{:mday => 6, :name => "Heilige Drei Könige", :regions => [:de_bw, :de_by, :de_st]},
|
165
165
|
{:mday => 1, :name => "Πρωτοχρονιά", :regions => [:el]},
|
166
166
|
{:mday => 6, :name => "Θεοφάνεια", :regions => [:el]},
|
167
|
-
{:mday => 1, :observed =>
|
168
|
-
{:mday => 6, :observed =>
|
167
|
+
{:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Año Nuevo", :regions => [:es]},
|
168
|
+
{:mday => 6, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de Reyes", :regions => [:es]},
|
169
169
|
{:mday => 1, :name => "Jour de l'an", :regions => [:fr]},
|
170
|
-
{:mday => 1, :observed =>
|
171
|
-
{:mday => 2, :observed =>
|
170
|
+
{:mday => 1, :observed => "to_monday_if_weekend(date)", :observed_arguments => [:date], :name => "New Year's Day", :regions => [:gb]},
|
171
|
+
{:mday => 2, :observed => "to_weekday_if_boxing_weekend(date)", :observed_arguments => [:date], :name => "2nd January", :regions => [:gb_sct]},
|
172
172
|
{:mday => 1, :name => "Nova godina", :regions => [:hr]},
|
173
173
|
{:mday => 6, :name => "Sveta tri kralja", :regions => [:hr]},
|
174
174
|
{:mday => 1, :name => "Újév", :regions => [:hu]},
|
175
|
-
{:mday => 1, :observed =>
|
175
|
+
{:mday => 1, :observed => "to_monday_if_weekend(date)", :observed_arguments => [:date], :name => "New Year's Day", :regions => [:ie]},
|
176
176
|
{:mday => 1, :name => "Nýársdagur", :regions => [:is]},
|
177
177
|
{:mday => 6, :name => "Þrettándinn", :regions => [:is]},
|
178
178
|
{:mday => 19, :type => :informal, :name => "Bóndadagur", :regions => [:is]},
|
@@ -184,8 +184,8 @@ module Holidays
|
|
184
184
|
{:mday => 1, :name => "Nieuwjaar", :regions => [:nl]},
|
185
185
|
{:mday => 1, :name => "Nyttårsdag", :regions => [:no]},
|
186
186
|
{:mday => 1, :name => "Nowy Rok", :regions => [:pl]},
|
187
|
-
{:function =>
|
188
|
-
{:function =>
|
187
|
+
{:function => "pl_trzech_kroli(year)", :function_arguments => [:year], :name => "Objawienie Pańskie (święto Trzech Króli)", :regions => [:pl]},
|
188
|
+
{:function => "pl_trzech_kroli_informal(year)", :function_arguments => [:year], :type => :informal, :name => "Objawienie Pańskie (święto Trzech Króli)", :regions => [:pl]},
|
189
189
|
{:mday => 21, :type => :informal, :name => "Dzień Babci", :regions => [:pl]},
|
190
190
|
{:mday => 22, :type => :informal, :name => "Dzień Dziadka", :regions => [:pl]},
|
191
191
|
{:mday => 1, :name => "Ano Novo", :regions => [:pt]},
|
@@ -206,10 +206,10 @@ module Holidays
|
|
206
206
|
{:mday => 5, :type => :informal, :name => "Danmarks befrielse", :regions => [:dk]},
|
207
207
|
{:mday => 1, :name => "Tag der Arbeit", :regions => [:de]},
|
208
208
|
{:mday => 1, :name => "Πρωτομαγιά", :regions => [:el]},
|
209
|
-
{:mday => 1, :observed =>
|
210
|
-
{:mday => 2, :observed =>
|
211
|
-
{:mday => 30, :observed =>
|
212
|
-
{:mday => 31, :observed =>
|
209
|
+
{:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día del Trabajador", :regions => [:es]},
|
210
|
+
{:mday => 2, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Fiesta de la Comunidad", :regions => [:es_m]},
|
211
|
+
{:mday => 30, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de las Canarias", :regions => [:es_cn]},
|
212
|
+
{:mday => 31, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de la Región Castilla-La Mancha", :regions => [:es_cm]},
|
213
213
|
{:mday => 1, :name => "Fête du travail", :regions => [:fr]},
|
214
214
|
{:mday => 8, :name => "Victoire 1945", :regions => [:fr]},
|
215
215
|
{:wday => 1, :week => 1, :name => "May Day", :regions => [:gb]},
|
@@ -250,7 +250,7 @@ module Holidays
|
|
250
250
|
{:mday => 15, :name => "Mariä Himmelfahrt", :regions => [:de_by, :de_sl]},
|
251
251
|
{:mday => 8, :name => "Friedensfest", :regions => [:de_by_aux]},
|
252
252
|
{:mday => 15, :name => "Κοίμηση της Θεοτόκου", :regions => [:el]},
|
253
|
-
{:mday => 15, :observed =>
|
253
|
+
{:mday => 15, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Asunción", :regions => [:es]},
|
254
254
|
{:mday => 15, :name => "Assomption", :regions => [:fr]},
|
255
255
|
{:wday => 1, :week => 1, :name => "Bank Holiday", :regions => [:gb_sct]},
|
256
256
|
{:wday => 1, :week => -1, :name => "Bank Holiday", :regions => [:gb_eng, :gb_wls, :gb_eaw, :gb_nir]},
|
@@ -275,8 +275,8 @@ module Holidays
|
|
275
275
|
{:mday => 31, :type => :informal, :name => "Reformationstag", :regions => [:de_bw]},
|
276
276
|
{:mday => 31, :year_ranges => [{:limited => [2017]}],:name => "Reformationstag", :regions => [:de]},
|
277
277
|
{:mday => 28, :name => "Επέτειος του Όχι", :regions => [:el]},
|
278
|
-
{:mday => 9, :observed =>
|
279
|
-
{:mday => 12, :observed =>
|
278
|
+
{:mday => 9, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de Valencia", :regions => [:es_vc, :es_v]},
|
279
|
+
{:mday => 12, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de la Hispanidad", :regions => [:es]},
|
280
280
|
{:mday => 8, :name => "Dan neovisnosti", :regions => [:hr]},
|
281
281
|
{:mday => 23, :name => "1956-os forradalom és szabadságharc ünnepe", :regions => [:hu]},
|
282
282
|
{:wday => 1, :week => -1, :name => "October Bank Holiday", :regions => [:ie]},
|
@@ -291,12 +291,12 @@ module Holidays
|
|
291
291
|
{:mday => 17, :name => "Den boje za svobodu a demokracii", :regions => [:cz]},
|
292
292
|
{:mday => 10, :type => :informal, :name => "Mortensaften", :regions => [:dk]},
|
293
293
|
{:mday => 1, :name => "Allerheiligen", :regions => [:de_bw, :de_by, :de_nw, :de_rp, :de_sl]},
|
294
|
-
{:function =>
|
295
|
-
{:mday => 1, :observed =>
|
294
|
+
{:function => "de_buss_und_bettag(year)", :function_arguments => [:year], :name => "Buß- und Bettag", :regions => [:de_sn]},
|
295
|
+
{:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Todos los Santos", :regions => [:es]},
|
296
296
|
{:mday => 1, :name => "Toussaint", :regions => [:fr]},
|
297
297
|
{:mday => 11, :name => "Armistice 1918", :regions => [:fr]},
|
298
298
|
{:mday => 5, :type => :informal, :name => "Guy Fawkes Day", :regions => [:gb]},
|
299
|
-
{:mday => 30, :observed =>
|
299
|
+
{:mday => 30, :observed => "to_monday_if_weekend(date)", :observed_arguments => [:date], :type => :informal, :name => "St. Andrew's Day", :regions => [:gb_sct]},
|
300
300
|
{:mday => 1, :name => "Dan svih svetih", :regions => [:hr]},
|
301
301
|
{:mday => 1, :name => "Mindenszentek", :regions => [:hu]},
|
302
302
|
{:mday => 16, :name => "Dagur íslenskrar tungu", :regions => [:is]},
|
@@ -335,19 +335,19 @@ module Holidays
|
|
335
335
|
{:mday => 31, :type => :informal, :name => "Silvester", :regions => [:de]},
|
336
336
|
{:mday => 25, :name => "Χριστούγεννα", :regions => [:el]},
|
337
337
|
{:mday => 26, :name => "Δεύτερη ημέρα των Χριστουγέννων", :regions => [:el]},
|
338
|
-
{:mday => 6, :observed =>
|
339
|
-
{:mday => 8, :observed =>
|
340
|
-
{:mday => 25, :observed =>
|
341
|
-
{:mday => 26, :observed =>
|
338
|
+
{:mday => 6, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de la Constitución", :regions => [:es]},
|
339
|
+
{:mday => 8, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Inmaculada Concepción", :regions => [:es]},
|
340
|
+
{:mday => 25, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Navidad del Señor", :regions => [:es]},
|
341
|
+
{:mday => 26, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "San Esteban", :regions => [:es_ib, :es_ct]},
|
342
342
|
{:mday => 25, :name => "Noël", :regions => [:fr]},
|
343
|
-
{:mday => 25, :observed =>
|
344
|
-
{:mday => 26, :observed =>
|
343
|
+
{:mday => 25, :observed => "to_monday_if_weekend(date)", :observed_arguments => [:date], :name => "Christmas Day", :regions => [:gb]},
|
344
|
+
{:mday => 26, :observed => "to_weekday_if_boxing_weekend(date)", :observed_arguments => [:date], :name => "Boxing Day", :regions => [:gb]},
|
345
345
|
{:mday => 25, :name => "Božić", :regions => [:hr]},
|
346
346
|
{:mday => 26, :name => "Sveti Stjepan", :regions => [:hr]},
|
347
347
|
{:mday => 25, :name => "Karácsony", :regions => [:hu]},
|
348
348
|
{:mday => 26, :name => "Karácsony", :regions => [:hu]},
|
349
|
-
{:mday => 25, :observed =>
|
350
|
-
{:mday => 26, :observed =>
|
349
|
+
{:mday => 25, :observed => "to_monday_if_weekend(date)", :observed_arguments => [:date], :name => "Christmas Day", :regions => [:ie]},
|
350
|
+
{:mday => 26, :observed => "ie_st_stephens_day(date)", :observed_arguments => [:date], :name => "St. Stephen's Day", :regions => [:ie]},
|
351
351
|
{:mday => 24, :name => "Jól", :regions => [:is]},
|
352
352
|
{:mday => 25, :name => "Jól", :regions => [:is]},
|
353
353
|
{:mday => 26, :name => "Jól", :regions => [:is]},
|
@@ -364,8 +364,8 @@ module Holidays
|
|
364
364
|
{:mday => 25, :name => "Šv. Kalėdos", :regions => [:lt]},
|
365
365
|
{:mday => 26, :name => "Antroji Kalėdų diena", :regions => [:lt]},
|
366
366
|
{:mday => 5, :type => :informal, :name => "Sinterklaas", :regions => [:nl]},
|
367
|
-
{:mday => 25, :name => "Kerstmis", :regions => [:nl]},
|
368
|
-
{:mday => 26, :name => "Kerstmis", :regions => [:nl]},
|
367
|
+
{:mday => 25, :name => "Eerste Kerstmis", :regions => [:nl]},
|
368
|
+
{:mday => 26, :name => "Tweede Kerstmis", :regions => [:nl]},
|
369
369
|
{:mday => 24, :type => :informal, :name => "Julaften", :regions => [:no]},
|
370
370
|
{:mday => 25, :name => "1. juledag", :regions => [:no]},
|
371
371
|
{:mday => 26, :name => "2. juledag", :regions => [:no]},
|
@@ -396,7 +396,7 @@ module Holidays
|
|
396
396
|
{:mday => 21, :name => "Nationale Feestdag", :regions => [:be_nl]},
|
397
397
|
{:mday => 5, :name => "Den slovanských věrozvěstů Cyrila a Metoděje", :regions => [:cz]},
|
398
398
|
{:mday => 6, :name => "Den upálení mistra Jana Husa", :regions => [:cz]},
|
399
|
-
{:mday => 23, :observed =>
|
399
|
+
{:mday => 23, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Santiago Apostol", :regions => [:es_ga]},
|
400
400
|
{:mday => 14, :name => "Fête nationale", :regions => [:fr]},
|
401
401
|
{:mday => 5, :name => "Tynwald Day", :regions => [:im, :gb_iom]},
|
402
402
|
{:mday => 12, :name => "Battle of the Boyne", :regions => [:gb_nir]},
|
@@ -405,25 +405,25 @@ module Holidays
|
|
405
405
|
3 => [{:mday => 1, :name => "Instauration de la République", :regions => [:ch_ne]},
|
406
406
|
{:mday => 19, :name => "Josephstag", :regions => [:ch_ur, :ch_sz, :ch_nw, :ch_ti, :ch_vs]},
|
407
407
|
{:mday => 25, :name => "Επέτειος της Επανάστασης του 1821", :regions => [:el]},
|
408
|
-
{:mday => 1, :observed =>
|
409
|
-
{:mday => 19, :observed =>
|
408
|
+
{:mday => 1, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de las Islas Baleares", :regions => [:es_ib]},
|
409
|
+
{:mday => 19, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "San José", :regions => [:es_v, :es_vc, :es_cm, :es_mu, :es_m]},
|
410
410
|
{:mday => 5, :name => "St. Piran's Day", :regions => [:gb_con]},
|
411
411
|
{:mday => 17, :name => "St. Patrick's Day", :regions => [:gb_nir]},
|
412
412
|
{:mday => 15, :name => "1848/49-es forradalom és szabadságharc ünnepe", :regions => [:hu]},
|
413
|
-
{:mday => 17, :observed =>
|
413
|
+
{:mday => 17, :observed => "to_monday_if_weekend(date)", :observed_arguments => [:date], :name => "St. Patrick's Day", :regions => [:ie]},
|
414
414
|
{:mday => 19, :name => "St. Josef", :regions => [:li]},
|
415
415
|
{:mday => 11, :name => "Nepriklausomybės atkūrimo diena", :regions => [:lt]},
|
416
416
|
{:mday => 8, :type => :informal, :name => "Dzień Kobiet", :regions => [:pl]},
|
417
417
|
{:mday => 10, :type => :informal, :name => "Dzień Mężczyzn", :regions => [:pl]},
|
418
418
|
{:mday => 3, :name => "Liberation Day", :regions => [:bg_en]},
|
419
419
|
{:mday => 3, :name => "Освобожението на България", :regions => [:bg_bg]}],
|
420
|
-
4 => [{:function =>
|
420
|
+
4 => [{:function => "ch_gl_naefelser_fahrt(year)", :function_arguments => [:year], :name => "Näfelser Fahrt", :regions => [:ch_gl]},
|
421
421
|
{:mday => 1, :type => :informal, :name => "1. april", :regions => [:dk]},
|
422
422
|
{:mday => 9, :type => :informal, :name => "Danmarks besættelse", :regions => [:dk]},
|
423
423
|
{:mday => 16, :type => :informal, :name => "Dronningens fødselsdag", :regions => [:dk]},
|
424
|
-
{:mday => 23, :observed =>
|
425
|
-
{:mday => 23, :observed =>
|
426
|
-
{:function =>
|
424
|
+
{:mday => 23, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de Castilla y León", :regions => [:es_cl]},
|
425
|
+
{:mday => 23, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "San Jorge, Día de Aragón", :regions => [:es_ar]},
|
426
|
+
{:function => "is_sumardagurinn_fyrsti(year)", :function_arguments => [:year], :name => "Sumardagurinn fyrsti", :regions => [:is]},
|
427
427
|
{:mday => 25, :name => "Festa della Liberazione", :regions => [:it]},
|
428
428
|
{:mday => 27, :name => "Koningsdag", :regions => [:nl]},
|
429
429
|
{:mday => 1, :type => :informal, :name => "Prima Aprilis", :regions => [:pl]},
|
@@ -435,8 +435,8 @@ module Holidays
|
|
435
435
|
{:mday => 5, :type => :informal, :name => "Grundlovsdag", :regions => [:dk]},
|
436
436
|
{:mday => 15, :type => :informal, :name => "Valdemarsdag og Genforeningsdag", :regions => [:dk]},
|
437
437
|
{:mday => 23, :type => :informal, :name => "Sankt Hans aften", :regions => [:dk]},
|
438
|
-
{:mday => 9, :observed =>
|
439
|
-
{:mday => 9, :observed =>
|
438
|
+
{:mday => 9, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de la Región de Murcia", :regions => [:es_mu]},
|
439
|
+
{:mday => 9, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de La Rioja", :regions => [:es_lo]},
|
440
440
|
{:mday => 22, :name => "Dan antifašističke borbe", :regions => [:hr]},
|
441
441
|
{:mday => 25, :name => "Dan državnosti", :regions => [:hr]},
|
442
442
|
{:wday => 1, :week => 1, :name => "June Bank Holiday", :regions => [:ie]},
|
@@ -450,10 +450,10 @@ module Holidays
|
|
450
450
|
9 => [{:mday => 22, :name => "Mauritiustag", :regions => [:ch_ai]},
|
451
451
|
{:mday => 25, :name => "Bruderklausenfest", :regions => [:ch_ow]},
|
452
452
|
{:mday => 28, :name => "Den české státnosti", :regions => [:cz]},
|
453
|
-
{:mday => 2, :observed =>
|
454
|
-
{:mday => 8, :observed =>
|
453
|
+
{:mday => 2, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de Ceuta", :regions => [:es_ce]},
|
454
|
+
{:mday => 8, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de Asturias", :regions => [:es_o]},
|
455
455
|
{:mday => 8, :name => "Día de Extremadura", :regions => [:es_ex]},
|
456
|
-
{:mday => 11, :observed =>
|
456
|
+
{:mday => 11, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Fiesta Nacional de Cataluña", :regions => [:es_ct]},
|
457
457
|
{:mday => 8, :name => "Maria Geburt", :regions => [:li]},
|
458
458
|
{:mday => 30, :type => :informal, :name => "Dzień Chłopaka", :regions => [:pl]},
|
459
459
|
{:mday => 1, :name => "Deň Ústavy Slovenskej republiky", :regions => [:sk]},
|
@@ -462,7 +462,7 @@ module Holidays
|
|
462
462
|
{:mday => 6, :name => "Ден на Съединението", :regions => [:bg_bg]},
|
463
463
|
{:mday => 22, :name => "The Independence Day", :regions => [:bg_en]},
|
464
464
|
{:mday => 22, :name => "Ден на Независимостта", :regions => [:bg_bg]}],
|
465
|
-
2 => [{:mday => 28, :observed =>
|
465
|
+
2 => [{:mday => 28, :observed => "to_monday_if_sunday(date)", :observed_arguments => [:date], :name => "Día de Andalucía", :regions => [:es_an]},
|
466
466
|
{:mday => 18, :type => :informal, :name => "Konudagur", :regions => [:is]},
|
467
467
|
{:mday => 2, :name => "Maria Lichtmess", :regions => [:li]},
|
468
468
|
{:mday => 16, :name => "Valstybės atkūrimo diena", :regions => [:lt]},
|
@@ -471,94 +471,81 @@ module Holidays
|
|
471
471
|
{:mday => 8, :name => "Prešernov dan, slovenski kulturni praznik", :regions => [:si]}]
|
472
472
|
}
|
473
473
|
end
|
474
|
-
end
|
475
474
|
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
# There are 15 days between the first Sunday
|
484
|
-
# and the Monday after the third Sunday
|
485
|
-
date + 15
|
475
|
+
def self.custom_methods
|
476
|
+
{
|
477
|
+
"ch_vd_lundi_du_jeune_federal(year)" => Proc.new { |year|
|
478
|
+
date = Date.civil(year,9,1)
|
479
|
+
# Find the first Sunday of September
|
480
|
+
until date.wday.eql? 0 do
|
481
|
+
date += 1
|
486
482
|
end
|
483
|
+
# There are 15 days between the first Sunday
|
484
|
+
# and the Monday after the third Sunday
|
485
|
+
date + 15
|
486
|
+
},
|
487
487
|
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
until date.wday.eql? 0 do
|
494
|
-
date += 1
|
495
|
-
end
|
496
|
-
# Thursday is four days after Sunday
|
497
|
-
date + 4
|
488
|
+
"ch_ge_jeune_genevois(year)" => Proc.new { |year|
|
489
|
+
date = Date.civil(year,9,1)
|
490
|
+
# Find the first Sunday of September
|
491
|
+
until date.wday.eql? 0 do
|
492
|
+
date += 1
|
498
493
|
end
|
494
|
+
# Thursday is four days after Sunday
|
495
|
+
date + 4
|
496
|
+
},
|
499
497
|
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
until date.wday.eql? 4 do
|
506
|
-
date += 1
|
507
|
-
end
|
508
|
-
if date.eql?(easter(year)-3)
|
509
|
-
date += 7
|
510
|
-
end
|
511
|
-
date
|
498
|
+
"ch_gl_naefelser_fahrt(year)" => Proc.new { |year|
|
499
|
+
date = Date.civil(year,4,1)
|
500
|
+
# Find the first Thursday of April
|
501
|
+
until date.wday.eql? 4 do
|
502
|
+
date += 1
|
512
503
|
end
|
513
504
|
|
514
|
-
|
515
|
-
|
516
|
-
def self.de_buss_und_bettag(year)
|
517
|
-
date = Date.civil(year,11,23)
|
518
|
-
if date.wday > 3
|
519
|
-
date -= (date.wday - 3)
|
520
|
-
else
|
521
|
-
date -= (date.wday + 4)
|
522
|
-
end
|
523
|
-
date
|
505
|
+
if date.eql?(Holidays::DateCalculatorFactory::Easter::Gregorian.easter_calculator.calculate_easter_for(year)-3)
|
506
|
+
date += 7
|
524
507
|
end
|
508
|
+
date
|
509
|
+
},
|
525
510
|
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
else date
|
533
|
-
end
|
511
|
+
"de_buss_und_bettag(year)" => Proc.new { |year|
|
512
|
+
date = Date.civil(year,11,23)
|
513
|
+
if date.wday > 3
|
514
|
+
date -= (date.wday - 3)
|
515
|
+
else
|
516
|
+
date -= (date.wday + 4)
|
534
517
|
end
|
518
|
+
date
|
519
|
+
},
|
535
520
|
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
date += (4 - date.wday)
|
542
|
-
else date
|
543
|
-
date += (11 - date.wday)
|
544
|
-
end
|
545
|
-
date
|
521
|
+
"ie_st_stephens_day(date)" => Proc.new { |date|
|
522
|
+
case date.wday
|
523
|
+
when 6, 0 then date + 2
|
524
|
+
when 1 then date + 1
|
525
|
+
else date
|
546
526
|
end
|
527
|
+
},
|
547
528
|
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
529
|
+
"is_sumardagurinn_fyrsti(year)" => Proc.new { |year|
|
530
|
+
date = Date.civil(year,4,18)
|
531
|
+
if date.wday < 4
|
532
|
+
date += (4 - date.wday)
|
533
|
+
else date
|
534
|
+
date += (11 - date.wday)
|
552
535
|
end
|
536
|
+
date
|
537
|
+
},
|
553
538
|
|
539
|
+
"pl_trzech_kroli(year)" => Proc.new { |year|
|
540
|
+
year >= 2011 ? 6 : nil
|
541
|
+
},
|
554
542
|
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
end
|
559
|
-
|
543
|
+
"pl_trzech_kroli_informal(year)" => Proc.new { |year|
|
544
|
+
year < 2011 ? 6 : nil
|
545
|
+
},
|
560
546
|
|
561
547
|
|
548
|
+
}
|
549
|
+
end
|
550
|
+
end
|
562
551
|
end
|
563
|
-
|
564
|
-
Holidays.merge_defs(Holidays::EUROPE.defined_regions, Holidays::EUROPE.holidays_by_month)
|