swedish_holidays 1.1.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/2020 +48 -48
- data/data/2021 +41 -41
- data/data/2022 +45 -45
- data/data/2023 +43 -43
- data/data/2024 +29 -29
- data/data/2025 +44 -44
- data/data/2026 +42 -42
- data/data/2027 +47 -47
- data/data/2028 +49 -49
- data/data/2029 +17 -17
- data/data/2030 +43 -43
- data/data/2031 +41 -41
- data/data/2032 +45 -45
- data/data/2033 +45 -45
- data/data/2034 +43 -43
- data/data/2035 +29 -29
- data/data/2036 +46 -46
- data/data/2037 +42 -42
- data/data/2038 +49 -49
- data/data/2039 +45 -45
- data/data/2040 +35 -35
- data/data/2041 +43 -43
- data/data/2042 +41 -41
- data/data/2043 +36 -36
- data/data/2044 +51 -51
- data/lib/swedish_holidays.rb +26 -12
- data/lib/swedish_holidays/holiday.rb +23 -11
- data/lib/swedish_holidays/utils.rb +24 -4
- metadata +7 -8
data/data/2035
CHANGED
@@ -1,101 +1,101 @@
|
|
1
1
|
---
|
2
|
-
- :date: '
|
2
|
+
- :date: '2035-01-01'
|
3
3
|
:name: Nyårsdagen
|
4
4
|
:week: 1
|
5
5
|
:weekday: Måndag
|
6
6
|
:yday: 1
|
7
7
|
:real_holiday: true
|
8
|
-
- :date: '
|
8
|
+
- :date: '2035-01-06'
|
9
9
|
:name: Trettondedag jul
|
10
10
|
:week: 1
|
11
11
|
:weekday: Lördag
|
12
12
|
:yday: 6
|
13
13
|
:real_holiday: true
|
14
|
-
- :date: '
|
14
|
+
- :date: '2035-03-23'
|
15
15
|
:name: Långfredagen
|
16
|
-
:week:
|
16
|
+
:week: 12
|
17
17
|
:weekday: Fredag
|
18
|
-
:yday:
|
18
|
+
:yday: 82
|
19
19
|
:real_holiday: true
|
20
|
-
- :date: '
|
20
|
+
- :date: '2035-03-24'
|
21
21
|
:name: Påskafton
|
22
|
-
:week:
|
22
|
+
:week: 12
|
23
23
|
:weekday: Lördag
|
24
|
-
:yday:
|
24
|
+
:yday: 83
|
25
25
|
:real_holiday: false
|
26
|
-
- :date: '
|
26
|
+
- :date: '2035-03-25'
|
27
27
|
:name: Påskdagen
|
28
|
-
:week:
|
28
|
+
:week: 12
|
29
29
|
:weekday: Söndag
|
30
|
-
:yday:
|
30
|
+
:yday: 84
|
31
31
|
:real_holiday: true
|
32
|
-
- :date: '
|
32
|
+
- :date: '2035-03-26'
|
33
33
|
:name: Annandag påsk
|
34
|
-
:week:
|
34
|
+
:week: 13
|
35
35
|
:weekday: Måndag
|
36
|
-
:yday:
|
36
|
+
:yday: 85
|
37
37
|
:real_holiday: true
|
38
|
-
- :date: '
|
38
|
+
- :date: '2035-05-01'
|
39
39
|
:name: Första maj
|
40
40
|
:week: 18
|
41
41
|
:weekday: Tisdag
|
42
42
|
:yday: 121
|
43
43
|
:real_holiday: true
|
44
|
-
- :date: '
|
44
|
+
- :date: '2035-05-03'
|
45
45
|
:name: Kristi himmelfärdsdag
|
46
|
-
:week:
|
46
|
+
:week: 18
|
47
47
|
:weekday: Torsdag
|
48
|
-
:yday:
|
48
|
+
:yday: 123
|
49
49
|
:real_holiday: true
|
50
|
-
- :date: '
|
50
|
+
- :date: '2035-05-13'
|
51
51
|
:name: Pingstdagen
|
52
|
-
:week:
|
52
|
+
:week: 19
|
53
53
|
:weekday: Söndag
|
54
|
-
:yday:
|
54
|
+
:yday: 133
|
55
55
|
:real_holiday: true
|
56
|
-
- :date: '
|
56
|
+
- :date: '2035-06-06'
|
57
57
|
:name: Sveriges nationaldag
|
58
58
|
:week: 23
|
59
59
|
:weekday: Onsdag
|
60
60
|
:yday: 157
|
61
61
|
:real_holiday: true
|
62
|
-
- :date: '
|
62
|
+
- :date: '2035-06-22'
|
63
63
|
:name: Midsommarafton
|
64
64
|
:week: 25
|
65
65
|
:weekday: Fredag
|
66
66
|
:yday: 173
|
67
67
|
:real_holiday: false
|
68
|
-
- :date: '
|
68
|
+
- :date: '2035-06-23'
|
69
69
|
:name: Midsommardagen
|
70
70
|
:week: 25
|
71
71
|
:weekday: Lördag
|
72
72
|
:yday: 174
|
73
73
|
:real_holiday: true
|
74
|
-
- :date: '
|
74
|
+
- :date: '2035-11-03'
|
75
75
|
:name: Alla helgons dag
|
76
76
|
:week: 44
|
77
77
|
:weekday: Lördag
|
78
78
|
:yday: 307
|
79
79
|
:real_holiday: true
|
80
|
-
- :date: '
|
80
|
+
- :date: '2035-12-24'
|
81
81
|
:name: Julafton
|
82
82
|
:week: 52
|
83
83
|
:weekday: Måndag
|
84
84
|
:yday: 358
|
85
85
|
:real_holiday: false
|
86
|
-
- :date: '
|
86
|
+
- :date: '2035-12-25'
|
87
87
|
:name: Juldagen
|
88
88
|
:week: 52
|
89
89
|
:weekday: Tisdag
|
90
90
|
:yday: 359
|
91
91
|
:real_holiday: true
|
92
|
-
- :date: '
|
92
|
+
- :date: '2035-12-26'
|
93
93
|
:name: Annandag jul
|
94
94
|
:week: 52
|
95
95
|
:weekday: Onsdag
|
96
96
|
:yday: 360
|
97
97
|
:real_holiday: true
|
98
|
-
- :date: '
|
98
|
+
- :date: '2035-12-31'
|
99
99
|
:name: Nyårsafton
|
100
100
|
:week: 1
|
101
101
|
:weekday: Måndag
|
data/data/2036
CHANGED
@@ -1,103 +1,103 @@
|
|
1
1
|
---
|
2
|
-
- :date: '
|
2
|
+
- :date: '2036-01-01'
|
3
3
|
:name: Nyårsdagen
|
4
4
|
:week: 1
|
5
|
-
:weekday:
|
5
|
+
:weekday: Tisdag
|
6
6
|
:yday: 1
|
7
7
|
:real_holiday: true
|
8
|
-
- :date: '
|
8
|
+
- :date: '2036-01-06'
|
9
9
|
:name: Trettondedag jul
|
10
10
|
:week: 1
|
11
|
-
:weekday:
|
11
|
+
:weekday: Söndag
|
12
12
|
:yday: 6
|
13
13
|
:real_holiday: true
|
14
|
-
- :date: '
|
14
|
+
- :date: '2036-04-11'
|
15
15
|
:name: Långfredagen
|
16
|
-
:week:
|
16
|
+
:week: 15
|
17
17
|
:weekday: Fredag
|
18
|
-
:yday:
|
18
|
+
:yday: 102
|
19
19
|
:real_holiday: true
|
20
|
-
- :date: '
|
20
|
+
- :date: '2036-04-12'
|
21
21
|
:name: Påskafton
|
22
|
-
:week:
|
22
|
+
:week: 15
|
23
23
|
:weekday: Lördag
|
24
|
-
:yday:
|
24
|
+
:yday: 103
|
25
25
|
:real_holiday: false
|
26
|
-
- :date: '
|
26
|
+
- :date: '2036-04-13'
|
27
27
|
:name: Påskdagen
|
28
|
-
:week:
|
28
|
+
:week: 15
|
29
29
|
:weekday: Söndag
|
30
|
-
:yday:
|
30
|
+
:yday: 104
|
31
31
|
:real_holiday: true
|
32
|
-
- :date: '
|
32
|
+
- :date: '2036-04-14'
|
33
33
|
:name: Annandag påsk
|
34
|
-
:week:
|
34
|
+
:week: 16
|
35
35
|
:weekday: Måndag
|
36
|
-
:yday:
|
36
|
+
:yday: 105
|
37
37
|
:real_holiday: true
|
38
|
-
- :date: '
|
38
|
+
- :date: '2036-05-01'
|
39
39
|
:name: Första maj
|
40
40
|
:week: 18
|
41
|
-
:weekday:
|
42
|
-
:yday:
|
41
|
+
:weekday: Torsdag
|
42
|
+
:yday: 122
|
43
43
|
:real_holiday: true
|
44
|
-
- :date: '
|
44
|
+
- :date: '2036-05-22'
|
45
45
|
:name: Kristi himmelfärdsdag
|
46
|
-
:week:
|
46
|
+
:week: 21
|
47
47
|
:weekday: Torsdag
|
48
|
-
:yday:
|
48
|
+
:yday: 143
|
49
49
|
:real_holiday: true
|
50
|
-
- :date: '
|
50
|
+
- :date: '2036-06-01'
|
51
51
|
:name: Pingstdagen
|
52
|
-
:week:
|
52
|
+
:week: 22
|
53
53
|
:weekday: Söndag
|
54
|
-
:yday:
|
54
|
+
:yday: 153
|
55
55
|
:real_holiday: true
|
56
|
-
- :date: '
|
56
|
+
- :date: '2036-06-06'
|
57
57
|
:name: Sveriges nationaldag
|
58
58
|
:week: 23
|
59
|
-
:weekday:
|
60
|
-
:yday:
|
59
|
+
:weekday: Fredag
|
60
|
+
:yday: 158
|
61
61
|
:real_holiday: true
|
62
|
-
- :date: '
|
62
|
+
- :date: '2036-06-20'
|
63
63
|
:name: Midsommarafton
|
64
64
|
:week: 25
|
65
65
|
:weekday: Fredag
|
66
|
-
:yday:
|
66
|
+
:yday: 172
|
67
67
|
:real_holiday: false
|
68
|
-
- :date: '
|
68
|
+
- :date: '2036-06-21'
|
69
69
|
:name: Midsommardagen
|
70
70
|
:week: 25
|
71
71
|
:weekday: Lördag
|
72
|
-
:yday:
|
72
|
+
:yday: 173
|
73
73
|
:real_holiday: true
|
74
|
-
- :date: '
|
74
|
+
- :date: '2036-11-01'
|
75
75
|
:name: Alla helgons dag
|
76
76
|
:week: 44
|
77
77
|
:weekday: Lördag
|
78
|
-
:yday:
|
78
|
+
:yday: 306
|
79
79
|
:real_holiday: true
|
80
|
-
- :date: '
|
80
|
+
- :date: '2036-12-24'
|
81
81
|
:name: Julafton
|
82
82
|
:week: 52
|
83
|
-
:weekday:
|
84
|
-
:yday:
|
83
|
+
:weekday: Onsdag
|
84
|
+
:yday: 359
|
85
85
|
:real_holiday: false
|
86
|
-
- :date: '
|
86
|
+
- :date: '2036-12-25'
|
87
87
|
:name: Juldagen
|
88
88
|
:week: 52
|
89
|
-
:weekday:
|
90
|
-
:yday:
|
89
|
+
:weekday: Torsdag
|
90
|
+
:yday: 360
|
91
91
|
:real_holiday: true
|
92
|
-
- :date: '
|
92
|
+
- :date: '2036-12-26'
|
93
93
|
:name: Annandag jul
|
94
94
|
:week: 52
|
95
|
-
:weekday:
|
96
|
-
:yday:
|
95
|
+
:weekday: Fredag
|
96
|
+
:yday: 361
|
97
97
|
:real_holiday: true
|
98
|
-
- :date: '
|
98
|
+
- :date: '2036-12-31'
|
99
99
|
:name: Nyårsafton
|
100
100
|
:week: 1
|
101
|
-
:weekday:
|
102
|
-
:yday:
|
101
|
+
:weekday: Onsdag
|
102
|
+
:yday: 366
|
103
103
|
:real_holiday: false
|
data/data/2037
CHANGED
@@ -1,103 +1,103 @@
|
|
1
1
|
---
|
2
|
-
- :date: '
|
2
|
+
- :date: '2037-01-01'
|
3
3
|
:name: Nyårsdagen
|
4
4
|
:week: 1
|
5
|
-
:weekday:
|
5
|
+
:weekday: Torsdag
|
6
6
|
:yday: 1
|
7
7
|
:real_holiday: true
|
8
|
-
- :date: '
|
8
|
+
- :date: '2037-01-06'
|
9
9
|
:name: Trettondedag jul
|
10
|
-
:week:
|
11
|
-
:weekday:
|
10
|
+
:week: 2
|
11
|
+
:weekday: Tisdag
|
12
12
|
:yday: 6
|
13
13
|
:real_holiday: true
|
14
|
-
- :date: '
|
14
|
+
- :date: '2037-04-03'
|
15
15
|
:name: Långfredagen
|
16
|
-
:week:
|
16
|
+
:week: 14
|
17
17
|
:weekday: Fredag
|
18
|
-
:yday:
|
18
|
+
:yday: 93
|
19
19
|
:real_holiday: true
|
20
|
-
- :date: '
|
20
|
+
- :date: '2037-04-04'
|
21
21
|
:name: Påskafton
|
22
|
-
:week:
|
22
|
+
:week: 14
|
23
23
|
:weekday: Lördag
|
24
|
-
:yday:
|
24
|
+
:yday: 94
|
25
25
|
:real_holiday: false
|
26
|
-
- :date: '
|
26
|
+
- :date: '2037-04-05'
|
27
27
|
:name: Påskdagen
|
28
|
-
:week:
|
28
|
+
:week: 14
|
29
29
|
:weekday: Söndag
|
30
|
-
:yday:
|
30
|
+
:yday: 95
|
31
31
|
:real_holiday: true
|
32
|
-
- :date: '
|
32
|
+
- :date: '2037-04-06'
|
33
33
|
:name: Annandag påsk
|
34
|
-
:week:
|
34
|
+
:week: 15
|
35
35
|
:weekday: Måndag
|
36
|
-
:yday:
|
36
|
+
:yday: 96
|
37
37
|
:real_holiday: true
|
38
|
-
- :date: '
|
38
|
+
- :date: '2037-05-01'
|
39
39
|
:name: Första maj
|
40
40
|
:week: 18
|
41
|
-
:weekday:
|
41
|
+
:weekday: Fredag
|
42
42
|
:yday: 121
|
43
43
|
:real_holiday: true
|
44
|
-
- :date: '
|
44
|
+
- :date: '2037-05-14'
|
45
45
|
:name: Kristi himmelfärdsdag
|
46
|
-
:week:
|
46
|
+
:week: 20
|
47
47
|
:weekday: Torsdag
|
48
|
-
:yday:
|
48
|
+
:yday: 134
|
49
49
|
:real_holiday: true
|
50
|
-
- :date: '
|
50
|
+
- :date: '2037-05-24'
|
51
51
|
:name: Pingstdagen
|
52
|
-
:week:
|
52
|
+
:week: 21
|
53
53
|
:weekday: Söndag
|
54
|
-
:yday:
|
54
|
+
:yday: 144
|
55
55
|
:real_holiday: true
|
56
|
-
- :date: '
|
56
|
+
- :date: '2037-06-06'
|
57
57
|
:name: Sveriges nationaldag
|
58
58
|
:week: 23
|
59
|
-
:weekday:
|
59
|
+
:weekday: Lördag
|
60
60
|
:yday: 157
|
61
61
|
:real_holiday: true
|
62
|
-
- :date: '
|
62
|
+
- :date: '2037-06-19'
|
63
63
|
:name: Midsommarafton
|
64
64
|
:week: 25
|
65
65
|
:weekday: Fredag
|
66
|
-
:yday:
|
66
|
+
:yday: 170
|
67
67
|
:real_holiday: false
|
68
|
-
- :date: '
|
68
|
+
- :date: '2037-06-20'
|
69
69
|
:name: Midsommardagen
|
70
70
|
:week: 25
|
71
71
|
:weekday: Lördag
|
72
|
-
:yday:
|
72
|
+
:yday: 171
|
73
73
|
:real_holiday: true
|
74
|
-
- :date: '
|
74
|
+
- :date: '2037-10-31'
|
75
75
|
:name: Alla helgons dag
|
76
76
|
:week: 44
|
77
77
|
:weekday: Lördag
|
78
|
-
:yday:
|
78
|
+
:yday: 304
|
79
79
|
:real_holiday: true
|
80
|
-
- :date: '
|
80
|
+
- :date: '2037-12-24'
|
81
81
|
:name: Julafton
|
82
82
|
:week: 52
|
83
|
-
:weekday:
|
83
|
+
:weekday: Torsdag
|
84
84
|
:yday: 358
|
85
85
|
:real_holiday: false
|
86
|
-
- :date: '
|
86
|
+
- :date: '2037-12-25'
|
87
87
|
:name: Juldagen
|
88
88
|
:week: 52
|
89
|
-
:weekday:
|
89
|
+
:weekday: Fredag
|
90
90
|
:yday: 359
|
91
91
|
:real_holiday: true
|
92
|
-
- :date: '
|
92
|
+
- :date: '2037-12-26'
|
93
93
|
:name: Annandag jul
|
94
94
|
:week: 52
|
95
|
-
:weekday:
|
95
|
+
:weekday: Lördag
|
96
96
|
:yday: 360
|
97
97
|
:real_holiday: true
|
98
|
-
- :date: '
|
98
|
+
- :date: '2037-12-31'
|
99
99
|
:name: Nyårsafton
|
100
|
-
:week:
|
101
|
-
:weekday:
|
100
|
+
:week: 53
|
101
|
+
:weekday: Torsdag
|
102
102
|
:yday: 365
|
103
103
|
:real_holiday: false
|
data/data/2038
CHANGED
@@ -1,103 +1,103 @@
|
|
1
1
|
---
|
2
|
-
- :date: '
|
2
|
+
- :date: '2038-01-01'
|
3
3
|
:name: Nyårsdagen
|
4
|
-
:week:
|
5
|
-
:weekday:
|
4
|
+
:week: 53
|
5
|
+
:weekday: Fredag
|
6
6
|
:yday: 1
|
7
7
|
:real_holiday: true
|
8
|
-
- :date: '
|
8
|
+
- :date: '2038-01-06'
|
9
9
|
:name: Trettondedag jul
|
10
10
|
:week: 1
|
11
|
-
:weekday:
|
11
|
+
:weekday: Onsdag
|
12
12
|
:yday: 6
|
13
13
|
:real_holiday: true
|
14
|
-
- :date: '
|
14
|
+
- :date: '2038-04-23'
|
15
15
|
:name: Långfredagen
|
16
|
-
:week:
|
16
|
+
:week: 16
|
17
17
|
:weekday: Fredag
|
18
|
-
:yday:
|
18
|
+
:yday: 113
|
19
19
|
:real_holiday: true
|
20
|
-
- :date: '
|
20
|
+
- :date: '2038-04-24'
|
21
21
|
:name: Påskafton
|
22
|
-
:week:
|
22
|
+
:week: 16
|
23
23
|
:weekday: Lördag
|
24
|
-
:yday:
|
24
|
+
:yday: 114
|
25
25
|
:real_holiday: false
|
26
|
-
- :date: '
|
26
|
+
- :date: '2038-04-25'
|
27
27
|
:name: Påskdagen
|
28
|
-
:week:
|
28
|
+
:week: 16
|
29
29
|
:weekday: Söndag
|
30
|
-
:yday:
|
30
|
+
:yday: 115
|
31
31
|
:real_holiday: true
|
32
|
-
- :date: '
|
32
|
+
- :date: '2038-04-26'
|
33
33
|
:name: Annandag påsk
|
34
|
-
:week:
|
34
|
+
:week: 17
|
35
35
|
:weekday: Måndag
|
36
|
-
:yday:
|
36
|
+
:yday: 116
|
37
37
|
:real_holiday: true
|
38
|
-
- :date: '
|
38
|
+
- :date: '2038-05-01'
|
39
39
|
:name: Första maj
|
40
|
-
:week:
|
41
|
-
:weekday:
|
40
|
+
:week: 17
|
41
|
+
:weekday: Lördag
|
42
42
|
:yday: 121
|
43
43
|
:real_holiday: true
|
44
|
-
- :date: '
|
44
|
+
- :date: '2038-06-03'
|
45
45
|
:name: Kristi himmelfärdsdag
|
46
|
-
:week:
|
46
|
+
:week: 22
|
47
47
|
:weekday: Torsdag
|
48
|
-
:yday:
|
48
|
+
:yday: 154
|
49
49
|
:real_holiday: true
|
50
|
-
- :date: '
|
51
|
-
:name:
|
52
|
-
:week:
|
50
|
+
- :date: '2038-06-06'
|
51
|
+
:name: Sveriges nationaldag
|
52
|
+
:week: 22
|
53
53
|
:weekday: Söndag
|
54
|
-
:yday:
|
54
|
+
:yday: 157
|
55
55
|
:real_holiday: true
|
56
|
-
- :date: '
|
57
|
-
:name:
|
56
|
+
- :date: '2038-06-13'
|
57
|
+
:name: Pingstdagen
|
58
58
|
:week: 23
|
59
|
-
:weekday:
|
60
|
-
:yday:
|
59
|
+
:weekday: Söndag
|
60
|
+
:yday: 164
|
61
61
|
:real_holiday: true
|
62
|
-
- :date: '
|
62
|
+
- :date: '2038-06-25'
|
63
63
|
:name: Midsommarafton
|
64
64
|
:week: 25
|
65
65
|
:weekday: Fredag
|
66
|
-
:yday:
|
66
|
+
:yday: 176
|
67
67
|
:real_holiday: false
|
68
|
-
- :date: '
|
68
|
+
- :date: '2038-06-26'
|
69
69
|
:name: Midsommardagen
|
70
70
|
:week: 25
|
71
71
|
:weekday: Lördag
|
72
|
-
:yday:
|
72
|
+
:yday: 177
|
73
73
|
:real_holiday: true
|
74
|
-
- :date: '
|
74
|
+
- :date: '2038-11-06'
|
75
75
|
:name: Alla helgons dag
|
76
76
|
:week: 44
|
77
77
|
:weekday: Lördag
|
78
|
-
:yday:
|
78
|
+
:yday: 310
|
79
79
|
:real_holiday: true
|
80
|
-
- :date: '
|
80
|
+
- :date: '2038-12-24'
|
81
81
|
:name: Julafton
|
82
|
-
:week:
|
83
|
-
:weekday:
|
82
|
+
:week: 51
|
83
|
+
:weekday: Fredag
|
84
84
|
:yday: 358
|
85
85
|
:real_holiday: false
|
86
|
-
- :date: '
|
86
|
+
- :date: '2038-12-25'
|
87
87
|
:name: Juldagen
|
88
|
-
:week:
|
89
|
-
:weekday:
|
88
|
+
:week: 51
|
89
|
+
:weekday: Lördag
|
90
90
|
:yday: 359
|
91
91
|
:real_holiday: true
|
92
|
-
- :date: '
|
92
|
+
- :date: '2038-12-26'
|
93
93
|
:name: Annandag jul
|
94
|
-
:week:
|
95
|
-
:weekday:
|
94
|
+
:week: 51
|
95
|
+
:weekday: Söndag
|
96
96
|
:yday: 360
|
97
97
|
:real_holiday: true
|
98
|
-
- :date: '
|
98
|
+
- :date: '2038-12-31'
|
99
99
|
:name: Nyårsafton
|
100
|
-
:week:
|
101
|
-
:weekday:
|
100
|
+
:week: 52
|
101
|
+
:weekday: Fredag
|
102
102
|
:yday: 365
|
103
103
|
:real_holiday: false
|