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/2039
CHANGED
@@ -1,103 +1,103 @@
|
|
1
1
|
---
|
2
|
-
- :date: '
|
2
|
+
- :date: '2039-01-01'
|
3
3
|
:name: Nyårsdagen
|
4
|
-
:week:
|
5
|
-
:weekday:
|
4
|
+
:week: 52
|
5
|
+
:weekday: Lördag
|
6
6
|
:yday: 1
|
7
7
|
:real_holiday: true
|
8
|
-
- :date: '
|
8
|
+
- :date: '2039-01-06'
|
9
9
|
:name: Trettondedag jul
|
10
10
|
:week: 1
|
11
|
-
:weekday:
|
11
|
+
:weekday: Torsdag
|
12
12
|
:yday: 6
|
13
13
|
:real_holiday: true
|
14
|
-
- :date: '
|
14
|
+
- :date: '2039-04-08'
|
15
15
|
:name: Långfredagen
|
16
|
-
:week:
|
16
|
+
:week: 14
|
17
17
|
:weekday: Fredag
|
18
|
-
:yday:
|
18
|
+
:yday: 98
|
19
19
|
:real_holiday: true
|
20
|
-
- :date: '
|
20
|
+
- :date: '2039-04-09'
|
21
21
|
:name: Påskafton
|
22
|
-
:week:
|
22
|
+
:week: 14
|
23
23
|
:weekday: Lördag
|
24
|
-
:yday:
|
24
|
+
:yday: 99
|
25
25
|
:real_holiday: false
|
26
|
-
- :date: '
|
26
|
+
- :date: '2039-04-10'
|
27
27
|
:name: Påskdagen
|
28
|
-
:week:
|
28
|
+
:week: 14
|
29
29
|
:weekday: Söndag
|
30
|
-
:yday:
|
30
|
+
:yday: 100
|
31
31
|
:real_holiday: true
|
32
|
-
- :date: '
|
32
|
+
- :date: '2039-04-11'
|
33
33
|
:name: Annandag påsk
|
34
|
-
:week:
|
34
|
+
:week: 15
|
35
35
|
:weekday: Måndag
|
36
|
-
:yday:
|
36
|
+
:yday: 101
|
37
37
|
:real_holiday: true
|
38
|
-
- :date: '
|
38
|
+
- :date: '2039-05-01'
|
39
39
|
:name: Första maj
|
40
|
-
:week:
|
41
|
-
:weekday:
|
40
|
+
:week: 17
|
41
|
+
:weekday: Söndag
|
42
42
|
:yday: 121
|
43
43
|
:real_holiday: true
|
44
|
-
- :date: '
|
44
|
+
- :date: '2039-05-19'
|
45
45
|
:name: Kristi himmelfärdsdag
|
46
|
-
:week:
|
46
|
+
:week: 20
|
47
47
|
:weekday: Torsdag
|
48
|
-
:yday:
|
48
|
+
:yday: 139
|
49
49
|
:real_holiday: true
|
50
|
-
- :date: '
|
50
|
+
- :date: '2039-05-29'
|
51
51
|
:name: Pingstdagen
|
52
|
-
:week:
|
52
|
+
:week: 21
|
53
53
|
:weekday: Söndag
|
54
|
-
:yday:
|
54
|
+
:yday: 149
|
55
55
|
:real_holiday: true
|
56
|
-
- :date: '
|
56
|
+
- :date: '2039-06-06'
|
57
57
|
:name: Sveriges nationaldag
|
58
58
|
:week: 23
|
59
|
-
:weekday:
|
59
|
+
:weekday: Måndag
|
60
60
|
:yday: 157
|
61
61
|
:real_holiday: true
|
62
|
-
- :date: '
|
62
|
+
- :date: '2039-06-24'
|
63
63
|
:name: Midsommarafton
|
64
64
|
:week: 25
|
65
65
|
:weekday: Fredag
|
66
|
-
:yday:
|
66
|
+
:yday: 175
|
67
67
|
:real_holiday: false
|
68
|
-
- :date: '
|
68
|
+
- :date: '2039-06-25'
|
69
69
|
:name: Midsommardagen
|
70
70
|
:week: 25
|
71
71
|
:weekday: Lördag
|
72
|
-
:yday:
|
72
|
+
:yday: 176
|
73
73
|
:real_holiday: true
|
74
|
-
- :date: '
|
74
|
+
- :date: '2039-11-05'
|
75
75
|
:name: Alla helgons dag
|
76
76
|
:week: 44
|
77
77
|
:weekday: Lördag
|
78
|
-
:yday:
|
78
|
+
:yday: 309
|
79
79
|
:real_holiday: true
|
80
|
-
- :date: '
|
80
|
+
- :date: '2039-12-24'
|
81
81
|
:name: Julafton
|
82
|
-
:week:
|
83
|
-
:weekday:
|
82
|
+
:week: 51
|
83
|
+
:weekday: Lördag
|
84
84
|
:yday: 358
|
85
85
|
:real_holiday: false
|
86
|
-
- :date: '
|
86
|
+
- :date: '2039-12-25'
|
87
87
|
:name: Juldagen
|
88
|
-
:week:
|
89
|
-
:weekday:
|
88
|
+
:week: 51
|
89
|
+
:weekday: Söndag
|
90
90
|
:yday: 359
|
91
91
|
:real_holiday: true
|
92
|
-
- :date: '
|
92
|
+
- :date: '2039-12-26'
|
93
93
|
:name: Annandag jul
|
94
94
|
:week: 52
|
95
|
-
:weekday:
|
95
|
+
:weekday: Måndag
|
96
96
|
:yday: 360
|
97
97
|
:real_holiday: true
|
98
|
-
- :date: '
|
98
|
+
- :date: '2039-12-31'
|
99
99
|
:name: Nyårsafton
|
100
|
-
:week:
|
101
|
-
:weekday:
|
100
|
+
:week: 52
|
101
|
+
:weekday: Lördag
|
102
102
|
:yday: 365
|
103
103
|
:real_holiday: false
|
data/data/2040
CHANGED
@@ -1,103 +1,103 @@
|
|
1
1
|
---
|
2
|
-
- :date: '
|
2
|
+
- :date: '2040-01-01'
|
3
3
|
:name: Nyårsdagen
|
4
|
-
:week:
|
5
|
-
:weekday:
|
4
|
+
:week: 52
|
5
|
+
:weekday: Söndag
|
6
6
|
:yday: 1
|
7
7
|
:real_holiday: true
|
8
|
-
- :date: '
|
8
|
+
- :date: '2040-01-06'
|
9
9
|
:name: Trettondedag jul
|
10
10
|
:week: 1
|
11
|
-
:weekday:
|
11
|
+
:weekday: Fredag
|
12
12
|
:yday: 6
|
13
13
|
:real_holiday: true
|
14
|
-
- :date: '
|
14
|
+
- :date: '2040-03-30'
|
15
15
|
:name: Långfredagen
|
16
16
|
:week: 13
|
17
17
|
:weekday: Fredag
|
18
|
-
:yday:
|
18
|
+
:yday: 90
|
19
19
|
:real_holiday: true
|
20
|
-
- :date: '
|
20
|
+
- :date: '2040-03-31'
|
21
21
|
:name: Påskafton
|
22
22
|
:week: 13
|
23
23
|
:weekday: Lördag
|
24
|
-
:yday:
|
24
|
+
:yday: 91
|
25
25
|
:real_holiday: false
|
26
|
-
- :date: '
|
26
|
+
- :date: '2040-04-01'
|
27
27
|
:name: Påskdagen
|
28
28
|
:week: 13
|
29
29
|
:weekday: Söndag
|
30
|
-
:yday:
|
30
|
+
:yday: 92
|
31
31
|
:real_holiday: true
|
32
|
-
- :date: '
|
32
|
+
- :date: '2040-04-02'
|
33
33
|
:name: Annandag påsk
|
34
34
|
:week: 14
|
35
35
|
:weekday: Måndag
|
36
|
-
:yday:
|
36
|
+
:yday: 93
|
37
37
|
:real_holiday: true
|
38
|
-
- :date: '
|
38
|
+
- :date: '2040-05-01'
|
39
39
|
:name: Första maj
|
40
40
|
:week: 18
|
41
41
|
:weekday: Tisdag
|
42
|
-
:yday:
|
42
|
+
:yday: 122
|
43
43
|
:real_holiday: true
|
44
|
-
- :date: '
|
44
|
+
- :date: '2040-05-10'
|
45
45
|
:name: Kristi himmelfärdsdag
|
46
46
|
:week: 19
|
47
47
|
:weekday: Torsdag
|
48
|
-
:yday:
|
48
|
+
:yday: 131
|
49
49
|
:real_holiday: true
|
50
|
-
- :date: '
|
50
|
+
- :date: '2040-05-20'
|
51
51
|
:name: Pingstdagen
|
52
52
|
:week: 20
|
53
53
|
:weekday: Söndag
|
54
|
-
:yday:
|
54
|
+
:yday: 141
|
55
55
|
:real_holiday: true
|
56
|
-
- :date: '
|
56
|
+
- :date: '2040-06-06'
|
57
57
|
:name: Sveriges nationaldag
|
58
58
|
:week: 23
|
59
59
|
:weekday: Onsdag
|
60
|
-
:yday:
|
60
|
+
:yday: 158
|
61
61
|
:real_holiday: true
|
62
|
-
- :date: '
|
62
|
+
- :date: '2040-06-22'
|
63
63
|
:name: Midsommarafton
|
64
64
|
:week: 25
|
65
65
|
:weekday: Fredag
|
66
|
-
:yday:
|
66
|
+
:yday: 174
|
67
67
|
:real_holiday: false
|
68
|
-
- :date: '
|
68
|
+
- :date: '2040-06-23'
|
69
69
|
:name: Midsommardagen
|
70
70
|
:week: 25
|
71
71
|
:weekday: Lördag
|
72
|
-
:yday:
|
72
|
+
:yday: 175
|
73
73
|
:real_holiday: true
|
74
|
-
- :date: '
|
74
|
+
- :date: '2040-11-03'
|
75
75
|
:name: Alla helgons dag
|
76
76
|
:week: 44
|
77
77
|
:weekday: Lördag
|
78
|
-
:yday:
|
78
|
+
:yday: 308
|
79
79
|
:real_holiday: true
|
80
|
-
- :date: '
|
80
|
+
- :date: '2040-12-24'
|
81
81
|
:name: Julafton
|
82
82
|
:week: 52
|
83
83
|
:weekday: Måndag
|
84
|
-
:yday:
|
84
|
+
:yday: 359
|
85
85
|
:real_holiday: false
|
86
|
-
- :date: '
|
86
|
+
- :date: '2040-12-25'
|
87
87
|
:name: Juldagen
|
88
88
|
:week: 52
|
89
89
|
:weekday: Tisdag
|
90
|
-
:yday:
|
90
|
+
:yday: 360
|
91
91
|
:real_holiday: true
|
92
|
-
- :date: '
|
92
|
+
- :date: '2040-12-26'
|
93
93
|
:name: Annandag jul
|
94
94
|
:week: 52
|
95
95
|
:weekday: Onsdag
|
96
|
-
:yday:
|
96
|
+
:yday: 361
|
97
97
|
:real_holiday: true
|
98
|
-
- :date: '
|
98
|
+
- :date: '2040-12-31'
|
99
99
|
:name: Nyårsafton
|
100
100
|
:week: 1
|
101
101
|
:weekday: Måndag
|
102
|
-
:yday:
|
102
|
+
:yday: 366
|
103
103
|
:real_holiday: false
|
data/data/2041
CHANGED
@@ -1,103 +1,103 @@
|
|
1
1
|
---
|
2
|
-
- :date: '
|
2
|
+
- :date: '2041-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: '2041-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: '2041-04-19'
|
15
15
|
:name: Långfredagen
|
16
|
-
:week:
|
16
|
+
:week: 16
|
17
17
|
:weekday: Fredag
|
18
|
-
:yday:
|
18
|
+
:yday: 109
|
19
19
|
:real_holiday: true
|
20
|
-
- :date: '
|
20
|
+
- :date: '2041-04-20'
|
21
21
|
:name: Påskafton
|
22
|
-
:week:
|
22
|
+
:week: 16
|
23
23
|
:weekday: Lördag
|
24
|
-
:yday:
|
24
|
+
:yday: 110
|
25
25
|
:real_holiday: false
|
26
|
-
- :date: '
|
26
|
+
- :date: '2041-04-21'
|
27
27
|
:name: Påskdagen
|
28
|
-
:week:
|
28
|
+
:week: 16
|
29
29
|
:weekday: Söndag
|
30
|
-
:yday:
|
30
|
+
:yday: 111
|
31
31
|
:real_holiday: true
|
32
|
-
- :date: '
|
32
|
+
- :date: '2041-04-22'
|
33
33
|
:name: Annandag påsk
|
34
|
-
:week:
|
34
|
+
:week: 17
|
35
35
|
:weekday: Måndag
|
36
|
-
:yday:
|
36
|
+
:yday: 112
|
37
37
|
:real_holiday: true
|
38
|
-
- :date: '
|
38
|
+
- :date: '2041-05-01'
|
39
39
|
:name: Första maj
|
40
40
|
:week: 18
|
41
|
-
:weekday:
|
41
|
+
:weekday: Onsdag
|
42
42
|
:yday: 121
|
43
43
|
:real_holiday: true
|
44
|
-
- :date: '
|
44
|
+
- :date: '2041-05-30'
|
45
45
|
:name: Kristi himmelfärdsdag
|
46
|
-
:week:
|
46
|
+
:week: 22
|
47
47
|
:weekday: Torsdag
|
48
|
-
:yday:
|
48
|
+
:yday: 150
|
49
49
|
:real_holiday: true
|
50
|
-
- :date: '
|
51
|
-
:name: Pingstdagen
|
52
|
-
:week: 20
|
53
|
-
:weekday: Söndag
|
54
|
-
:yday: 140
|
55
|
-
:real_holiday: true
|
56
|
-
- :date: '2018-06-06'
|
50
|
+
- :date: '2041-06-06'
|
57
51
|
:name: Sveriges nationaldag
|
58
52
|
:week: 23
|
59
|
-
:weekday:
|
53
|
+
:weekday: Torsdag
|
60
54
|
:yday: 157
|
61
55
|
:real_holiday: true
|
62
|
-
- :date: '
|
56
|
+
- :date: '2041-06-09'
|
57
|
+
:name: Pingstdagen
|
58
|
+
:week: 23
|
59
|
+
:weekday: Söndag
|
60
|
+
:yday: 160
|
61
|
+
:real_holiday: true
|
62
|
+
- :date: '2041-06-21'
|
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: '2041-06-22'
|
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: '2041-11-02'
|
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: '2041-12-24'
|
81
81
|
:name: Julafton
|
82
82
|
:week: 52
|
83
|
-
:weekday:
|
83
|
+
:weekday: Tisdag
|
84
84
|
:yday: 358
|
85
85
|
:real_holiday: false
|
86
|
-
- :date: '
|
86
|
+
- :date: '2041-12-25'
|
87
87
|
:name: Juldagen
|
88
88
|
:week: 52
|
89
|
-
:weekday:
|
89
|
+
:weekday: Onsdag
|
90
90
|
:yday: 359
|
91
91
|
:real_holiday: true
|
92
|
-
- :date: '
|
92
|
+
- :date: '2041-12-26'
|
93
93
|
:name: Annandag jul
|
94
94
|
:week: 52
|
95
|
-
:weekday:
|
95
|
+
:weekday: Torsdag
|
96
96
|
:yday: 360
|
97
97
|
:real_holiday: true
|
98
|
-
- :date: '
|
98
|
+
- :date: '2041-12-31'
|
99
99
|
:name: Nyårsafton
|
100
100
|
:week: 1
|
101
|
-
:weekday:
|
101
|
+
:weekday: Tisdag
|
102
102
|
:yday: 365
|
103
103
|
:real_holiday: false
|
data/data/2042
CHANGED
@@ -1,103 +1,103 @@
|
|
1
1
|
---
|
2
|
-
- :date: '
|
2
|
+
- :date: '2042-01-01'
|
3
3
|
:name: Nyårsdagen
|
4
4
|
:week: 1
|
5
|
-
:weekday:
|
5
|
+
:weekday: Onsdag
|
6
6
|
:yday: 1
|
7
7
|
:real_holiday: true
|
8
|
-
- :date: '
|
8
|
+
- :date: '2042-01-06'
|
9
9
|
:name: Trettondedag jul
|
10
|
-
:week:
|
11
|
-
:weekday:
|
10
|
+
:week: 2
|
11
|
+
:weekday: Måndag
|
12
12
|
:yday: 6
|
13
13
|
:real_holiday: true
|
14
|
-
- :date: '
|
14
|
+
- :date: '2042-04-04'
|
15
15
|
:name: Långfredagen
|
16
|
-
:week:
|
16
|
+
:week: 14
|
17
17
|
:weekday: Fredag
|
18
|
-
:yday:
|
18
|
+
:yday: 94
|
19
19
|
:real_holiday: true
|
20
|
-
- :date: '
|
20
|
+
- :date: '2042-04-05'
|
21
21
|
:name: Påskafton
|
22
|
-
:week:
|
22
|
+
:week: 14
|
23
23
|
:weekday: Lördag
|
24
|
-
:yday:
|
24
|
+
:yday: 95
|
25
25
|
:real_holiday: false
|
26
|
-
- :date: '
|
26
|
+
- :date: '2042-04-06'
|
27
27
|
:name: Påskdagen
|
28
|
-
:week:
|
28
|
+
:week: 14
|
29
29
|
:weekday: Söndag
|
30
|
-
:yday:
|
30
|
+
:yday: 96
|
31
31
|
:real_holiday: true
|
32
|
-
- :date: '
|
32
|
+
- :date: '2042-04-07'
|
33
33
|
:name: Annandag påsk
|
34
|
-
:week:
|
34
|
+
:week: 15
|
35
35
|
:weekday: Måndag
|
36
|
-
:yday:
|
36
|
+
:yday: 97
|
37
37
|
:real_holiday: true
|
38
|
-
- :date: '
|
38
|
+
- :date: '2042-05-01'
|
39
39
|
:name: Första maj
|
40
40
|
:week: 18
|
41
|
-
:weekday:
|
41
|
+
:weekday: Torsdag
|
42
42
|
:yday: 121
|
43
43
|
:real_holiday: true
|
44
|
-
- :date: '
|
44
|
+
- :date: '2042-05-15'
|
45
45
|
:name: Kristi himmelfärdsdag
|
46
|
-
:week:
|
46
|
+
:week: 20
|
47
47
|
:weekday: Torsdag
|
48
|
-
:yday:
|
48
|
+
:yday: 135
|
49
49
|
:real_holiday: true
|
50
|
-
- :date: '
|
50
|
+
- :date: '2042-05-25'
|
51
51
|
:name: Pingstdagen
|
52
|
-
:week:
|
52
|
+
:week: 21
|
53
53
|
:weekday: Söndag
|
54
|
-
:yday:
|
54
|
+
:yday: 145
|
55
55
|
:real_holiday: true
|
56
|
-
- :date: '
|
56
|
+
- :date: '2042-06-06'
|
57
57
|
:name: Sveriges nationaldag
|
58
58
|
:week: 23
|
59
|
-
:weekday:
|
59
|
+
:weekday: Fredag
|
60
60
|
:yday: 157
|
61
61
|
:real_holiday: true
|
62
|
-
- :date: '
|
62
|
+
- :date: '2042-06-20'
|
63
63
|
:name: Midsommarafton
|
64
64
|
:week: 25
|
65
65
|
:weekday: Fredag
|
66
|
-
:yday:
|
66
|
+
:yday: 171
|
67
67
|
:real_holiday: false
|
68
|
-
- :date: '
|
68
|
+
- :date: '2042-06-21'
|
69
69
|
:name: Midsommardagen
|
70
70
|
:week: 25
|
71
71
|
:weekday: Lördag
|
72
|
-
:yday:
|
72
|
+
:yday: 172
|
73
73
|
:real_holiday: true
|
74
|
-
- :date: '
|
74
|
+
- :date: '2042-11-01'
|
75
75
|
:name: Alla helgons dag
|
76
76
|
:week: 44
|
77
77
|
:weekday: Lördag
|
78
|
-
:yday:
|
78
|
+
:yday: 305
|
79
79
|
:real_holiday: true
|
80
|
-
- :date: '
|
80
|
+
- :date: '2042-12-24'
|
81
81
|
:name: Julafton
|
82
82
|
:week: 52
|
83
|
-
:weekday:
|
83
|
+
:weekday: Onsdag
|
84
84
|
:yday: 358
|
85
85
|
:real_holiday: false
|
86
|
-
- :date: '
|
86
|
+
- :date: '2042-12-25'
|
87
87
|
:name: Juldagen
|
88
88
|
:week: 52
|
89
|
-
:weekday:
|
89
|
+
:weekday: Torsdag
|
90
90
|
:yday: 359
|
91
91
|
:real_holiday: true
|
92
|
-
- :date: '
|
92
|
+
- :date: '2042-12-26'
|
93
93
|
:name: Annandag jul
|
94
94
|
:week: 52
|
95
|
-
:weekday:
|
95
|
+
:weekday: Fredag
|
96
96
|
:yday: 360
|
97
97
|
:real_holiday: true
|
98
|
-
- :date: '
|
98
|
+
- :date: '2042-12-31'
|
99
99
|
:name: Nyårsafton
|
100
100
|
:week: 1
|
101
|
-
:weekday:
|
101
|
+
:weekday: Onsdag
|
102
102
|
:yday: 365
|
103
103
|
:real_holiday: false
|