blob: 3410ba44bf5e430312d50435d7596ce3850c3195 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
## Timewarrior Holiday Files
The holidays files were created manually for now. The data delivered from
holidata.net for Germany is nearly complete, but it lacks some states and has
some formal issues. I have handed in this to the holdata.net devs, and as soon
as they have fixed that I will switch to using the refresh script.
They contain following files:
- **holidays.de-DE:** Holidays which apply to all of Germany
- **holidays.de-XX:** Holidays for German state XX (XX=ISO-3166-2 code for the
respective states). Said code will be displayed in the output.
- **vacation-2018:** Sample vacation file. As timewarrior only knows the
holiday definition and this is pretty sufficient (holidays
only are an auxiliary display anyway), we will mark them as
"VAC" and are done with it.
### refresh script
Since the refresh script included in the holidays plugin is not working, I'm
creating my own. I'm not a python zen guru, so this is rather slow development.
However, the current state is the following:
* You can pass on the desired locale (e.g. de-DE) and the desired year to the
script (call it with --help to see details). It will then create files for all
of the regions and the country's allover holidays.
* --region is not functional yet, this will be included soon.
* If you don't supply --locale, for now it will draw de-DE by default. In
future versions it will work like the original script, i.e. refresh all
existing files (this will come after the implementation of --region as that is
a prerequisite).
### ISO-3166-2 codes
The following tables are just explanatives - if you know your ISO-3166, you can
ignore this.
#### Germany
| ISO | State |
| :---: | ------------------------------- |
| de-BB | Brandenburg |
| de-BE | Berlin |
| de-BW | Baden-Württemberg |
| de-BY | Bavaria |
| de-DE | Pseudocode: in all of Germany |
| de-HB | Bremen |
| de-HE | Hesse |
| de-HH | Hamburg |
| de-MV | Mecklenburg - Western Pomerania |
| de-NI | Lower Saxony |
| de-NW | North Rine - Westphalia |
| de-RP | Rhineland-Palatinate |
| de-SH | Schleswig-Holstein |
| de-SL | Saarland |
| de-SN | Saxony |
| de-ST | Saxony-Anhalt |
| de-TH | Thuringia |
#### Austria
The official ISO-3166 codes are just AT-1 through AT-9, in alphabetical order
of the states. So in this case, we use pseudo codes to make it easier for
timewarrior users to identify their state.
| Code | State | ISO |
| :---: | ------------------- | -----|
| at-BL | Burgenland | AT-1 |
| at-KT | Carinthia (Kärnten) | AT-2 |
| at-NO | Lower Austria | AT-3 |
| at-OO | Upper Austria | AT-4 |
| at-SZ | Salzburg | AT-5 |
| at-ST | Styria (Steiermark) | AT-6 |
| at-TI | Tyrol | AT-7 |
| at-VA | Vorarlberg | AT-8 |
| at-WI | Vienna (Wien) | AT-9 |
|