├── .coveralls.yml
├── .editorconfig
├── .github
├── dependabot.yml
└── workflows
│ └── actions.yml
├── .gitignore
├── CODE_OF_CONDUCT.md
├── LICENSE
├── README.md
├── THANK_YOU.md
├── composer.json
├── docs
├── .gitignore
├── 404.html
├── Gemfile
├── Gemfile.lock
├── _config.yml
├── _data
│ └── navigation.yml
├── _layouts
│ └── default.html
├── _posts
│ └── 2018-02-23-welcome-to-jekyll.markdown
├── archives.md
├── articles.md
├── assets
│ └── css
│ │ └── style.scss
├── extend_xml.md
├── feed.xml
└── index.md
├── infection.json.dist
├── phpcs.xml
├── phpstan.neon
├── phpunit-coverage.xml.dist
├── phpunit.xml.dist
├── psalm.xml
├── share
├── AD-canillo.xml
├── AD-encamp.xml
├── AD-escaldesEngordany.xml
├── AD-laMassana.xml
├── AD-laVella.xml
├── AD-ordino.xml
├── AD-santJuliaDeLoria.xml
├── AD.xml
├── AF.xml
├── AG.xml
├── AL.xml
├── AM.xml
├── AO.xml
├── AR-armenian.xml
├── AR-catholic.xml
├── AR-islam.xml
├── AR-judaism.xml
├── AR.xml
├── AT-1.xml
├── AT-2.xml
├── AT-3.xml
├── AT-4.xml
├── AT-5.xml
├── AT-6.xml
├── AT-7.xml
├── AT-8.xml
├── AT-9.xml
├── AT.xml
├── AU-ACT.xml
├── AU-NSW.xml
├── AU-NT.xml
├── AU-QLD.xml
├── AU-SA.xml
├── AU-TAS.xml
├── AU-VIC.xml
├── AU-WA.xml
├── AU.xml
├── AZ.xml
├── BA-BIH-catholic.xml
├── BA-BIH-islamic.xml
├── BA-BIH-orthodox.xml
├── BA-BIH.xml
├── BA-SRP-catholic.xml
├── BA-SRP-islamic.xml
├── BA-SRP-orthodox.xml
├── BA-SRP.xml
├── BA-catholic.xml
├── BA-islamic.xml
├── BA-orthodox.xml
├── BA.xml
├── BB.xml
├── BD-buddhist.xml
├── BD-christian.xml
├── BD-hindu.xml
├── BD-islam.xml
├── BD.xml
├── BF.xml
├── BG.xml
├── BH.xml
├── BI.xml
├── BJ.xml
├── BM.xml
├── BN.xml
├── BO.xml
├── BR.xml
├── BS.xml
├── BT.xml
├── BW.xml
├── BY.xml
├── BZ.xml
├── CC.xml
├── CD.xml
├── CF.xml
├── CG.xml
├── CH-AI.xml
├── CH-AR.xml
├── CH-BE.xml
├── CH-BL.xml
├── CH-BS.xml
├── CH-FR.xml
├── CH-GL.xml
├── CH-LU.xml
├── CH-NW.xml
├── CH-OW.xml
├── CH-SG.xml
├── CH-SH.xml
├── CH-SO.xml
├── CH-SZ.xml
├── CH-UR.xml
├── CH-ZG.xml
├── CH-ZH.xml
├── CI.xml
├── CL.xml
├── CM.xml
├── CN.xml
├── CO.xml
├── CR.xml
├── CU.xml
├── CV.xml
├── CX.xml
├── CY.xml
├── CZ.xml
├── DE-BB.xml
├── DE-BE.xml
├── DE-BW.xml
├── DE-BY.xml
├── DE-HB.xml
├── DE-HE.xml
├── DE-HH.xml
├── DE-MV.xml
├── DE-NI.xml
├── DE-NW.xml
├── DE-RP.xml
├── DE-SH.xml
├── DE-SL.xml
├── DE-SN.xml
├── DE-ST.xml
├── DE-TH.xml
├── DE.xml
├── DK.xml
├── EC.xml
├── ES-AN.xml
├── ES-AR.xml
├── ES-AS.xml
├── ES-CB.xml
├── ES-CE.xml
├── ES-CL.xml
├── ES-CM.xml
├── ES-CN.xml
├── ES-CT.xml
├── ES-EX.xml
├── ES-GA.xml
├── ES-IB.xml
├── ES-MD.xml
├── ES-ML.xml
├── ES-MU.xml
├── ES-NA.xml
├── ES-PV.xml
├── ES-RI.xml
├── ES-VC.xml
├── ES.xml
├── FI.xml
├── FR-57.xml
├── FR-67.xml
├── FR-68.xml
├── FR-GF.xml
├── FR-GP.xml
├── FR-MQ.xml
├── FR-RE.xml
├── FR-YT.xml
├── FR.xml
├── GB-AL.xml
├── GB-EN.xml
├── GB-GU.xml
├── GB-IM.xml
├── GB-JE.xml
├── GB-NI.xml
├── GB-SC.xml
├── GB-WA.xml
├── GB.xml
├── GR.xml
├── GY.xml
├── HR.xml
├── HU.xml
├── IT.xml
├── IT_BZ.xml
├── JA.xml
├── KH.xml
├── KM.xml
├── MX.xml
├── NF.xml
├── NL.xml
├── NO.xml
├── PE.xml
├── PL.xml
├── PT-20.xml
├── PT-30.xml
├── PT.xml
├── PY.xml
├── RU.xml
├── SE.xml
├── SR.xml
├── TD.xml
├── TR.xml
├── US.xml
├── UY.xml
├── VE.xml
├── ZA.xml
├── de_LU.xml
├── en_CA-AB.xml
├── en_CA-BC.xml
├── en_CA-MB.xml
├── en_CA-NB.xml
├── en_CA-NL.xml
├── en_CA-NS.xml
├── en_CA-NT.xml
├── en_CA-NU.xml
├── en_CA-ON.xml
├── en_CA-PE.xml
├── en_CA-QC.xml
├── en_CA-SK.xml
├── en_CA-YT.xml
├── en_CA.xml
├── en_DZ.xml
├── en_IE.xml
├── fr_BE.xml
├── fr_CA-AB.xml
├── fr_CA-BC.xml
├── fr_CA-MB.xml
├── fr_CA-NB.xml
├── fr_CA-NL.xml
├── fr_CA-NS.xml
├── fr_CA-NT.xml
├── fr_CA-NU.xml
├── fr_CA-ON.xml
├── fr_CA-PE.xml
├── fr_CA-QC.xml
├── fr_CA-SK.xml
├── fr_CA-YT.xml
├── fr_CA.xml
├── fr_LU.xml
├── ga_IE.xml
├── holidays.xsd
├── lb_LU.xml
└── nl_BE.xml
├── src
├── Calendar.php
├── CalendarDay.php
├── CalendarDayFactory.php
├── Exceptions
│ └── UnknownCalendar.php
├── Factory
│ ├── DateFactory.php
│ ├── DateFollowupFactory.php
│ ├── DecorateFromDomElement.php
│ ├── EasterFactory.php
│ ├── EasterOrthodoxFactory.php
│ ├── ItemFromDomElementCreator.php
│ ├── ObservanceDecoratorFactory.php
│ ├── RelativeFactory.php
│ └── SwapDecoratorFactory.php
├── GregorianWeekday.php
├── Holiday.php
├── HolidayIterator.php
├── HolidayIteratorFactory.php
├── HolidayIteratorItemInterface.php
├── Holidaychecker.php
├── IteratorItem
│ ├── Date.php
│ ├── DateFollowUp.php
│ ├── Easter.php
│ ├── EasterOrthodox.php
│ ├── Relative.php
│ └── SwapDecorator.php
├── ObservanceDecorator.php
├── SwapDirection.php
└── SwapRule.php
├── tests
├── CalendarDayFactoryTest.php
├── CalendarDayTest.php
├── Factory
│ ├── RelativeFactoryTest.php
│ └── SwapDecoratorFactoryTest.php
├── GregorianWeekdayTest.php
├── HolidayIteratorFactoryTest.php
├── HolidayIteratorTest.php
├── HolidaycheckerTest.php
├── Integration
│ ├── ArgentiniaTest.php
│ └── BahrainTest.php
├── IteratorItem
│ ├── DateFollowUpTest.php
│ ├── DateTest.php
│ ├── EasterOrthodoxTest.php
│ ├── EasterTest.php
│ ├── RelativeTest.php
│ └── SwapDecoratorTest.php
├── ObservanceDecoratorTest.php
├── SwapDirectionTest.php
└── _assets
│ ├── invalid.xml
│ ├── test.xml
│ └── testDecoration.xml
└── world.svg
/.coveralls.yml:
--------------------------------------------------------------------------------
1 | coverage_clover: clover.xml
2 | json_path: coveralls-upload.json
3 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | # EditorConfig is awesome: http://EditorConfig.org
2 |
3 | # top-most EditorConfig file
4 | root = true
5 |
6 | # Unix-style newlines with a newline ending every file
7 | [*]
8 | end_of_line = lf
9 | insert_final_newline = true
10 | trim_trailing_whitespace = true
11 | max_line_length = 120
12 | charset = utf-8
13 | indent_size = tab
14 | indent_style = tab
15 | tab_width = 4
16 |
17 | # Matches the exact files either package.json or .travis.yml
18 | [{package.json,.travis.yml,composer.json}]
19 | tab_width = 2
20 |
21 | [*.xml]
22 | tab_width = 2
23 |
24 | [COMMIT_EDITMSG]
25 | max_line_length = 72
26 |
--------------------------------------------------------------------------------
/.github/dependabot.yml:
--------------------------------------------------------------------------------
1 | version: 2
2 | updates:
3 | - package-ecosystem: composer
4 | directory: "/"
5 | schedule:
6 | interval: daily
7 | time: "04:00"
8 | open-pull-requests-limit: 10
9 | - package-ecosystem: bundler
10 | directory: "/docs"
11 | schedule:
12 | interval: daily
13 | time: "04:00"
14 | open-pull-requests-limit: 10
15 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | vendor/
2 | phpunit.xml
3 | .phpcs-cache
4 | .phpunit.result.cache
5 | composer.lock
6 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Andreas Heigl
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/THANK_YOU.md:
--------------------------------------------------------------------------------
1 | # You want to say "Thank You"?
2 |
3 | I'm developing and maintaining this package in my spare time. And I've released
4 | it under and OpenSource License so you can freely use it.
5 |
6 | If you want to thank me for that, feel free to have a look at my
7 | Wishlist on [Amazon](https://hei.gl/wishlist) or [GoodReads](https://hei.gl/bookwishes) and send me a gift.
8 |
9 | I'm also always happy to hear about what cool projects you've build with this
10 | package. So if you want to drop me a message and tell me that'd be cool!
11 |
--------------------------------------------------------------------------------
/docs/.gitignore:
--------------------------------------------------------------------------------
1 | _site
2 | .sass-cache
3 | .jekyll-metadata
4 |
--------------------------------------------------------------------------------
/docs/404.html:
--------------------------------------------------------------------------------
1 | ---
2 | layout: default
3 | ---
4 |
5 |
18 |
19 |
20 |
404
21 |
22 |
Page not found :(
23 |
The requested page could not be found.
24 |
25 |
--------------------------------------------------------------------------------
/docs/Gemfile:
--------------------------------------------------------------------------------
1 | source "https://rubygems.org"
2 |
3 | # Hello! This is where you manage which Jekyll version is used to run.
4 | # When you want to use a different version, change it below, save the
5 | # file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
6 | #
7 | # bundle exec jekyll serve
8 | #
9 | # This will help ensure the proper Jekyll version is running.
10 | # Happy Jekylling!
11 | gem "jekyll", "~> 4.3.2"
12 |
13 | # This is the default theme for new Jekyll sites. You may change this to anything you like.
14 | gem "minima", "~> 2.5"
15 |
16 | # If you want to use GitHub Pages, remove the "gem "jekyll"" above and
17 | # uncomment the line below. To upgrade, run `bundle update github-pages`.
18 | # gem "github-pages", group: :jekyll_plugins
19 |
20 | # If you have any plugins, put them here!
21 | group :jekyll_plugins do
22 | gem "jekyll-feed"
23 | end
24 |
25 | # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
26 | gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
27 |
28 | # Performance-booster for watching directories on Windows
29 | gem "wdm", "~> 0.1.0" if Gem.win_platform?
30 |
31 | #gem "github-pages", group: :jekyll_plugins
32 |
33 | gem "jekyll-theme-minimal"
34 | gem "jekyll-archives"
35 | gem "jekyll-paginate"
36 | gem "jekyll-sitemap"
37 |
38 |
--------------------------------------------------------------------------------
/docs/_data/navigation.yml:
--------------------------------------------------------------------------------
1 | # If you want to link only specific pages in your header, add the path to the
2 | # pages in order as they should show up.
3 | main:
4 | # - title: "Articles"
5 | # url: /articles/
6 | # - title: "Achives"
7 | # url: /archives/
8 | - title: "Extend"
9 | url: /extend_xml
10 | # - title: "GitHub"
11 | # url: https://github.com/heiglandreas/holidayChecker
12 |
--------------------------------------------------------------------------------
/docs/_posts/2018-02-23-welcome-to-jekyll.markdown:
--------------------------------------------------------------------------------
1 | ---
2 | layout: post
3 | title: "Welcome to Jekyll!"
4 | date: 2018-02-23 18:07:19 +0100
5 | categories: jekyll update
6 | ---
7 | You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
8 |
9 | To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.
10 |
11 | Jekyll also offers powerful support for code snippets:
12 |
13 | {% highlight ruby %}
14 | def print_hi(name)
15 | puts "Hi, #{name}"
16 | end
17 | print_hi('Tom')
18 | #=> prints 'Hi, Tom' to STDOUT.
19 | {% endhighlight %}
20 |
21 | Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk].
22 |
23 | [jekyll-docs]: https://jekyllrb.com/docs/home
24 | [jekyll-gh]: https://github.com/jekyll/jekyll
25 | [jekyll-talk]: https://talk.jekyllrb.com/
26 |
--------------------------------------------------------------------------------
/docs/archives.md:
--------------------------------------------------------------------------------
1 | ---
2 | layout: archive
3 | title: "Blog Archive"
4 | permalink: /archives/
5 | ---
6 |
--------------------------------------------------------------------------------
/docs/articles.md:
--------------------------------------------------------------------------------
1 | ---
2 | # You don't need to edit this file, it's empty on purpose.
3 | # Edit whiteglass' home layout instead if you want to make some changes.
4 | # See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults
5 | layout: home
6 | permalink: /articles/
7 | ---
8 |
--------------------------------------------------------------------------------
/docs/assets/css/style.scss:
--------------------------------------------------------------------------------
1 | ---
2 | ---
3 |
4 | @import "{{ site.theme }}";
5 |
6 | nav.site-nav a{
7 | display: block;
8 | }
9 |
10 | nav.site-nav a:before {
11 | content: "~ ";
12 | }
13 |
--------------------------------------------------------------------------------
/docs/feed.xml:
--------------------------------------------------------------------------------
1 | ---
2 | layout: feed
3 | ---
4 |
--------------------------------------------------------------------------------
/infection.json.dist:
--------------------------------------------------------------------------------
1 | {
2 | "timeout": 10,
3 | "source": {
4 | "directories": [
5 | "src"
6 | ]
7 | },
8 | "logs": {
9 | "text": "infection-log.txt"
10 | }
11 | }
--------------------------------------------------------------------------------
/phpstan.neon:
--------------------------------------------------------------------------------
1 | # run with: bin/phpstan analyse
2 | # update baseline with: bin/phpstan analyse -b
3 |
4 | includes:
5 | # - phpstan-baseline.neon
6 |
7 | parameters:
8 | level: 8
9 | checkExplicitMixedMissingReturn: true
10 | reportUnmatchedIgnoredErrors: false
11 | treatPhpDocTypesAsCertain: false
12 |
13 | parallel:
14 | processTimeout: 300.0
15 | editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'
16 |
17 | paths:
18 | - src/
19 |
20 | reportMaybesInMethodSignatures: false
21 | reportMaybesInPropertyPhpDocTypes: false
22 | reportWrongPhpDocTypeInVarTag: false
23 |
24 |
--------------------------------------------------------------------------------
/phpunit-coverage.xml.dist:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 | tests
12 |
13 |
14 |
15 | src
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/phpunit.xml.dist:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 | tests
12 |
13 |
14 |
15 |
16 | src
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/psalm.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/share/AD-canillo.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Canillo Annual Festival
11 | Canillo Annual Festival
12 | Canillo Annual Festival
13 |
14 |
--------------------------------------------------------------------------------
/share/AD-encamp.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Encamp Annual Festival
11 | Encamp Annual Festival
12 |
13 |
--------------------------------------------------------------------------------
/share/AD-escaldesEngordany.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Escaldes–Engordany Annual Festival
11 | Escaldes–Engordany Annual Festival
12 |
13 |
--------------------------------------------------------------------------------
/share/AD-laMassana.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | La Massana Annual Festival
11 | La Massana Annual Festival
12 |
13 |
--------------------------------------------------------------------------------
/share/AD-laVella.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Andorra la Vella Annual Festival
11 | Andorra la Vella Annual Festival
12 | Andorra la Vella Annual Festival
13 |
14 |
--------------------------------------------------------------------------------
/share/AD-ordino.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Ordino Annual Festival
11 | Ordino Annual Festival
12 |
13 |
--------------------------------------------------------------------------------
/share/AD-santJuliaDeLoria.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Sant Julià de Lòria Annual Festival
11 | Sant Julià de Lòria Annual Festival
12 | Sant Julià de Lòria Annual Festival
13 | Sant Julià de Lòria Annual Festival
14 |
15 |
--------------------------------------------------------------------------------
/share/AG.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Wikipedia
8 |
9 | New Year's Day
10 | Good Friday
11 | Easter Monday
12 | Labour Day
13 | Whit Monday
14 | August Monday
15 | August Tuesday
16 | Independence Day
17 | National Heroes Day
18 | Christmas Day
19 | Boxing Day
20 |
21 |
--------------------------------------------------------------------------------
/share/AM.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Wikipedia
8 |
9 | Ամանոր
10 | Ամանոր
11 | Սուրբ Ծնունդ
12 | Բանակի օր
13 | Կանանց տոն
14 | Եղեռնի զոհերի հիշատակի օր
15 | Աշխատանքի օր
16 | Հաղթանակի եւ Խաղաղության տոն
17 | Հանրապետության օր
18 | Սահմանադրության օր
19 | Անկախության օր
20 | Ամանոր
21 |
22 |
--------------------------------------------------------------------------------
/share/AR-armenian.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Día de Acción por la Tolerancia y el Respeto entre los Pueblos
11 |
12 |
--------------------------------------------------------------------------------
/share/AR-catholic.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Jueves Santo
11 |
12 |
--------------------------------------------------------------------------------
/share/AR-islam.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 | Fiesta de la Ruptura del Ayuno del Sagrado Mes de Ramadán
11 | Fiesta del Sacrificio
12 | Año Nuevo Islámico
13 |
14 |
--------------------------------------------------------------------------------
/share/AR-judaism.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 | Pésaj
8 | Pésaj
9 | Pésaj
10 | Pésaj
11 | Año Nuevo Judío
12 | Año Nuevo Judío
13 | Día del Perdón
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/share/AT-1.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Martin
11 |
12 |
--------------------------------------------------------------------------------
/share/AT-2.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Josefstag
11 | Tag der Volksabstimmung
12 |
13 |
--------------------------------------------------------------------------------
/share/AT-3.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Leopold
11 |
12 |
--------------------------------------------------------------------------------
/share/AT-4.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Florian
11 |
12 |
--------------------------------------------------------------------------------
/share/AT-5.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Rupert
11 |
12 |
--------------------------------------------------------------------------------
/share/AT-6.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Josefstag
11 |
12 |
--------------------------------------------------------------------------------
/share/AT-7.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Josefstag
11 |
12 |
--------------------------------------------------------------------------------
/share/AT-8.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Josefstag
11 |
12 |
--------------------------------------------------------------------------------
/share/AT-9.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Leopold
11 |
12 |
--------------------------------------------------------------------------------
/share/AU-ACT.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Canberry Day
11 | Easter Saturday
12 | Easter Sunday
13 | Anzac Day
14 | Reconciliation Day
15 | Kings Birthday
16 | Labour Day
17 | Boxing Day
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/share/AU-NSW.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Easter Saturday
11 | Easter Sunday
12 | Anzac Day
13 | Kings Birthday
14 | Labour Day
15 | Boxing Day
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/share/AU-NT.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Easter Saturday
11 | Anzac Day
12 | May Day
13 | Kings Birthday
14 | Picnic Day
15 | Christmas Eve
16 | Boxing Day
17 | New Year's Eve
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/share/AU-QLD.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | The day after Good Friday
11 | Easter Sunday
12 | Anzac Day
13 | Labour Day
14 | Royal Queensland Show
15 | King's Birthday
16 | Christmas Eve
17 | Boxing Day
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/share/AU-SA.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | March Public Holiday
11 | The day after Good Friday
12 | Easter Sunday
13 | Anzac Day
14 | Kings Birthday
15 | Labour Day
16 | Christmas Day
17 | Proclamation Day
18 | New Year's Eve
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/share/AU-TAS.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Anzac Day
11 | Royal Hobart Regatta
12 | Eight Hours Day
13 | Easter Tuesday
14 | Kings Birthday
15 | Recreation Day
16 | Boxing Day
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/share/AU-VIC.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Labour Day
11 | Saturday before Easter Sunday
12 | Easter Sunday
13 | Anzac Day
14 | Kings Birthday
15 | Friday before the Australian Football League Grand Final
16 | Melbourne Cup
17 | Boxing Day
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/share/AU-WA.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 | King's Birthday in Western Australia
10 |
11 | Labour Day
12 | Anzac Day
13 | Western Australia Day
14 | King's Birthday
15 | King's Birthday
16 | King's Birthday
17 | Boxing Day
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/share/AU.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Wikipedia
8 |
9 | New Year's Day
10 | Australia Day
11 | Good Friday
12 | Easter Monday
13 | Christmas Day
14 |
15 |
--------------------------------------------------------------------------------
/share/BA-BIH-catholic.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/share/BA-BIH-islamic.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/share/BA-BIH-orthodox.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/share/BA-BIH.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Dan nezavisnosti
11 | Dan državnosti
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/share/BA-SRP-catholic.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/share/BA-SRP-islamic.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/share/BA-SRP-orthodox.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/share/BA-SRP.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Dan Republike
11 | Dan pobjede
12 | Dan uspostave Opšteg okvirnog sporazuma za mir u Bosni i Hercegovini
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/share/BA-catholic.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 | Bogojavljenje (Sveta Tri kralja)
8 | Uskrs
9 | Uskrsni ponedjeljak
10 | Tijelovo (Tijelo i Krv Kristova)
11 | Uznesenje Blažene Djevice Marije (Velika Gospa)
12 | Svi Sveti
13 | Dušni dan
14 | Božić
15 | Stipandan (Stjepandan)
16 |
17 |
--------------------------------------------------------------------------------
/share/BA-islamic.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Muslimanska Nova Godina
11 | Mevlud
12 | Kurban Bajram
13 | Kurban Bajram
14 | Kurban Bajram
15 | Kurban Bajram
16 | Ramazanski Bajram
17 | Ramazanski Bajram
18 | Ramazanski Bajram
19 |
20 |
--------------------------------------------------------------------------------
/share/BA-orthodox.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Božić (Божић)
11 | Nova godina (Нова година)
12 | Vaskrs (Васкрс)
13 | Velika Gospojina (Велика Госпојина)
14 |
15 |
--------------------------------------------------------------------------------
/share/BA.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Wikipedia
8 |
9 | Nova Godina
10 | Drugi dan Nove Godine
11 | Dan rada
12 | Drugi dan Dana rada
13 |
14 |
--------------------------------------------------------------------------------
/share/BB.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 | New Year's Eve
8 | Errol Barrow Day
9 | Good Friday
10 | Easter Monday
11 | National Heroes' Day
12 | May Day/Labour Day
13 | Whit Monday
14 | Emancipation Day
15 | Kadooment Day
16 | Independence Day
17 | Christmas Day
18 | Boxing Day
19 |
20 |
--------------------------------------------------------------------------------
/share/BD-buddhist.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/share/BD-christian.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 | বড়দিন
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/share/BD-hindu.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/share/BD-islam.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 | আশুরা
8 | ঈদে মিলাদুন্নবী
9 | ঈদুল ফিতর
10 | ঈদুল ফিতর
11 | ঈদুল ফিতর
12 | ঈদুল আযহা
13 | ঈদুল আযহা
14 | ঈদুল আযহা
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/share/BD.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Wikipedia
8 |
9 | শহীদ দিবস
10 | মুজিব জয়ন্তী
11 | স্বাধীনতা দিবস
12 | পহেলা বৈশাখ
13 | মে দিবস
14 | জাতীয় শোক দিবস
15 | বিজয় দিবস
16 |
17 |
--------------------------------------------------------------------------------
/share/BF.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Wikipedia
8 |
9 | New Year's Day
10 | Revolution Day
11 | International Women's Day
12 | Easter Monday
13 | Labour Day
14 | Ascension Day
15 | Independence Day
16 | Asumption Day
17 | Martyr's Day
18 | All Saints Day
19 | Proclamation of Independence Day
20 | Christmas Day
21 | Korité
22 | Tabaski
23 | Mawlid
24 |
25 |
--------------------------------------------------------------------------------
/share/BI.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Wikipedia
8 |
9 | New Year's Day
10 | Unity Day
11 | Cyprien Ntaryamira Day
12 | Labour Day
13 | Ascension
14 | Independence Day
15 | Assumption
16 | Rwagasore Day
17 | Ndadaye Day
18 | All Saints' Day
19 | Christmas Day
20 | Eid al-Adha
21 |
22 |
--------------------------------------------------------------------------------
/share/BM.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | New Year's Day
7 | Good Friday
8 | Bermuda Day
9 | National Heroes Day
10 | Emancipation Day
11 | Somers' Day
12 | Labour Day
13 | Remembrance Day
14 | Christmas Day
15 | Boxing Day
16 |
17 |
--------------------------------------------------------------------------------
/share/BO.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Año Nuevo
11 | Nacimiento del Estado Plurinacional de Bolivia
12 | Fiesta de la Virgen de Candelaria
13 | Feriado por Carnaval
14 | Feriado por Carnaval
15 | Viernes Santo
16 | Corpus Christi
17 | Dia del trabajo
18 | Año Nuevo Andino
19 | Día de la Revolución Agraria, Productiva y Comunitaria
20 | Dia de la Patria
21 | Todos Santos
22 | Navidad
23 |
24 |
--------------------------------------------------------------------------------
/share/BR.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Ano Novo
7 | Dia de Tiradentes
8 | Dia do Trabalhador
9 | Dia da Independência
10 | Nossa Senhora Aparecida
11 | Dia de Finados
12 | Proclamação da República
13 | Natal
14 |
15 |
16 | Wikipedia
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/share/BS.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Wikipedia
8 |
9 | New Year's Day
10 | Majority Rule Day
11 | Good Friday
12 | Easter Monday
13 | Whit Monday
14 | Randol Fawkes — Labour Day
15 | Independence Day
16 | Emancipation Day/August Monday
17 | National Heroes' Day
18 | Christmas Day
19 | Boxing Day
20 |
21 |
--------------------------------------------------------------------------------
/share/BW.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | New Year's Day
11 | New Year's Day
12 | Good Friday
13 | Easter Monday
14 | Labour Day
15 | Ascension Day
16 | Sir Seretse Khama Day
17 | Presidents' Day
18 | Botswana Day
19 | Botswana Day Holiday
20 | Christmas Day
21 | Boxing Day
22 |
23 |
--------------------------------------------------------------------------------
/share/BY.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Новы год
11 | Новы год
12 | Каляды праваслаўныя
13 | Мiжнародны жаночы дзень
14 | Радунiца
15 | Дзень працы
16 | Дзень Перамогi
17 | Дзень Незалежнасцi
18 | Дзень Кастрычніцкай рэвалюцыі
19 | Каляды каталiцкiя
20 |
21 |
--------------------------------------------------------------------------------
/share/CC.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Wikipedia
8 |
9 | New Year's Day
10 | Australia Day
11 | Good Friday
12 | Easter Monday
13 | Self Determination Day
14 | Anzac Day
15 | Hari Raya Puasa
16 | Hari Raya Haji
17 | Islamic New Year
18 | Hari Maulaud Nabi
19 | Christmas Day
20 | Boxing Day
21 |
22 |
--------------------------------------------------------------------------------
/share/CD.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Wikipedia
8 |
9 |
10 |
11 | New Year's Day
12 | Martyrs Day
13 | Laurent-Désiré Kabila Assassination
14 | Patrice Lumumba Assassination
15 | Labor Day
16 | Liberation Day
17 | Independence Day
18 | Parents' Day
19 | Army Day
20 | Christmas Day
21 |
22 |
--------------------------------------------------------------------------------
/share/CF.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Wikipedia
8 |
9 | New Year's Day
10 | Barthelemy Boganda Day
11 | Easter Monday
12 | Ascension Day
13 | Whit Monday
14 | Labour Day
15 | General Prayer Day
16 | Independence Day
17 | Assumption Day
18 | All Saints Day
19 | National Day
20 | Christmas Day
21 | Korité
22 | Tabaski
23 |
24 |
--------------------------------------------------------------------------------
/share/CG.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Jour de l'An
11 | Fête du Travail
12 | Fête de la Réconciliation
13 | Fête Nationale
14 | Toussaint
15 | Jour de la République
16 | Noël
17 | Lundi de Pâques
18 | Ascension
19 | Lundi de Pentecôte
20 |
21 |
--------------------------------------------------------------------------------
/share/CH-AI.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Neujahrstag
11 | Karfreitag
12 | Ostermontag
13 | Auffahrt
14 | Pfingstmontag
15 | Frohnleichnam
16 | Bundesfeier
17 | Mariä Himmelfahrt
18 | Allerheiligen
19 | Mariä Empfängnis
20 | Weihnachtstag
21 | Stephanstag
22 |
23 |
--------------------------------------------------------------------------------
/share/CH-AR.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Neujahrstag
11 | Karfreitag
12 | Ostermontag
13 | Auffahrt
14 | Pfingstmontag
15 | Bundesfeier
16 | Weihnachtstag
17 | Stephanstag
18 |
19 |
--------------------------------------------------------------------------------
/share/CH-BE.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Neujahrstag
11 | Berchtoldstag
12 | Karfreitag
13 | Ostermontag
14 | Auffahrt
15 | Pfingstmontag
16 | Bundesfeier
17 | Weihnachtstag
18 | Stephanstag
19 |
20 |
--------------------------------------------------------------------------------
/share/CH-BL.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Neujahrstag
11 | Karfreitag
12 | Ostermontag
13 | Tag der Arbeit
14 | Auffahrt
15 | Pfingstmontag
16 | Frohnleichnam
17 | Bundesfeier
18 | Mariä Himmelfahrt
19 | Weihnachtstag
20 | Stephanstag
21 |
22 |
--------------------------------------------------------------------------------
/share/CH-BS.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Neujahrstag
11 | Karfreitag
12 | Ostermontag
13 | Tag der Arbeit
14 | Auffahrt
15 | Pfingstmontag
16 | Bundesfeier
17 | Weihnachtstag
18 | Stephanstag
19 |
20 |
--------------------------------------------------------------------------------
/share/CH-GL.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Neujahrstag
11 | Berchtoldstag
12 | Karfreitag
13 | Ostermontag
14 | Auffahrt
15 | Pfingstmontag
16 | Bundesfeier
17 | Allerheiligen
18 | Weihnachtstag
19 | Stephanstag
20 |
21 |
--------------------------------------------------------------------------------
/share/CH-LU.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Neujahrstag
11 | Berchtoldstag
12 | Josefstag
13 | Karfreitag
14 | Ostermontag
15 | Auffahrt
16 | Pfingstmontag
17 | Frohnleichnam
18 | Bundesfeier
19 | Mariä Himmelfahrt
20 | Allerheiligen
21 | Mariä Empfängnis
22 | Weihnachtstag
23 | Stephanstag
24 |
25 |
--------------------------------------------------------------------------------
/share/CH-NW.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Neujahrstag
11 | Josefstag
12 | Karfreitag
13 | Ostermontag
14 | Auffahrt
15 | Pfingstmontag
16 | Frohnleichnam
17 | Bundesfeier
18 | Mariä Himmelfahrt
19 | Allerheiligen
20 | Mariä Empfängnis
21 | Weihnachtstag
22 | Stephanstag
23 |
24 |
--------------------------------------------------------------------------------
/share/CH-OW.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Neujahrstag
11 | Berchtoldstag
12 | Karfreitag
13 | Ostermontag
14 | Auffahrt
15 | Pfingstmontag
16 | Frohnleichnam
17 | Bundesfeier
18 | Mariä Himmelfahrt
19 | Allerheiligen
20 | Mariä Empfängnis
21 | Weihnachtstag
22 | Stephanstag
23 |
24 |
--------------------------------------------------------------------------------
/share/CH-SG.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Neujahrstag
11 | Karfreitag
12 | Ostermontag
13 | Auffahrt
14 | Pfingstmontag
15 | Bundesfeier
16 | Allerheiligen
17 | Weihnachtstag
18 | Stephanstag
19 |
20 |
--------------------------------------------------------------------------------
/share/CH-SH.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Neujahrstag
11 | Berchtoldstag
12 | Karfreitag
13 | Ostermontag
14 | Tag der Arbeit
15 | Auffahrt
16 | Pfingstmontag
17 | Bundesfeier
18 | Weihnachtstag
19 | Stephanstag
20 |
21 |
--------------------------------------------------------------------------------
/share/CH-SZ.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Neujahrstag
11 | Heilige Drei Könige
12 | Josefstag
13 | Karfreitag
14 | Ostermontag
15 | Auffahrt
16 | Pfingstmontag
17 | Frohnleichnam
18 | Bundesfeier
19 | Mariä Himmelfahrt
20 | Allerheiligen
21 | Mariä Empfängnis
22 | Weihnachtstag
23 | Stephanstag
24 |
25 |
--------------------------------------------------------------------------------
/share/CH-UR.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Neujahrstag
11 | Heilige Drei Könige
12 | Josefstag
13 | Karfreitag
14 | Ostermontag
15 | Auffahrt
16 | Pfingstmontag
17 | Frohnleichnam
18 | Bundesfeier
19 | Mariä Himmelfahrt
20 | Allerheiligen
21 | Mariä Empfängnis
22 | Weihnachtstag
23 | Stephanstag
24 |
25 |
--------------------------------------------------------------------------------
/share/CH-ZH.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Neujahrstag
11 | Berchtoldstag
12 | Karfreitag
13 | Ostermontag
14 | Tag der Arbeit
15 | Auffahrt
16 | Pfingstmontag
17 | Bundesfeier
18 | Weihnachtstag
19 | Stephanstag
20 |
21 |
--------------------------------------------------------------------------------
/share/CM.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Nouvel An
11 | Journée de la jeunesse
12 | Fête du Travail
13 | Fête Nationale
14 | Assomption
15 | Noël
16 | Good Friday
17 | Ascension Day
18 | Eid al-Fitr
19 | Eid al-Adha
20 | Mawlid
21 |
22 |
--------------------------------------------------------------------------------
/share/CN.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | 元旦
7 | 春节
8 | 春节
9 |
10 | 清明节
11 | 劳动节
12 | 端午节
13 | 中秋节
14 | 国庆节
15 | 国庆节
16 | 国庆节
17 |
18 |
19 | Wikipedia
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/share/CU.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | Día de la Liberación
11 | Día de la Victoria
12 | Viernes Santo
13 | Día de los trabajadores
14 | Conmemoración del asalto a Moncada
15 | Día de la Rebeldía Nacional
16 | Conmemoración del asalto a Moncada
17 | Día de la Independencia
18 | Navidad
19 |
20 |
--------------------------------------------------------------------------------
/share/CV.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Wikipedia
8 |
9 | Ano Novo
10 | Dia da Liberdade e Democracia
11 | Dia da Nacionalidade e dos Heróis Nacionais
12 | Dia do Trabalhador
13 | Dia Mundial da Criança
14 | Dia da Independência Nacional
15 | Dia da Assunção
16 | Dia de Todos os Santos
17 | Natal
18 |
19 |
--------------------------------------------------------------------------------
/share/CX.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Wikipedia
8 |
9 | New Year's Day
10 | Australia Day
11 | Chinese New Year
12 | Chinese New Year
13 | Labour Day
14 | Good Friday
15 | Anzac Day
16 | Eid al-Fitr
17 | Eid al-Adha
18 | Territory Day
19 | Christmas Day
20 | Boxing Day
21 |
22 |
--------------------------------------------------------------------------------
/share/DE-BB.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Reformationstag
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/share/DE-BE.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Internationaler Frauentag
10 |
11 |
--------------------------------------------------------------------------------
/share/DE-BW.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Epiphanias
10 | Fronleichnam
11 | Allerheiligen
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/share/DE-BY.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Hl. Drei Könige
7 | Fronleichnam
8 | Friedensfest
9 | Mariä Himmelfahrt
10 | Allerheiligen
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/share/DE-HB.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/share/DE-HE.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Fronleichnam
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/share/DE-HH.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Reformationstag
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/share/DE-MV.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Reformationstag
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/share/DE-NI.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/share/DE-NW.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Fronleichnam
7 | Allerheiligen
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/share/DE-RP.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Fronleichnam
7 | Allerheiligen
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/share/DE-SH.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/share/DE-SL.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Fronleichnam
7 | Mariä Himmelfahrt
8 | Allerheiligen
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/share/DE-SN.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Fronleichnam
7 | Mariä Himmelfahrt
8 | Reformationstag
9 | Buß- und Bettag
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/share/DE-ST.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Epiphanias
7 | Reformationstag
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/share/DE-TH.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Fronleichnam
7 | Reformationstag
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/share/DK.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Nytårsdag
7 | Palmesøndag
8 | Skærtorsdag
9 | Langfredag
10 | Påskedag
11 | Anden påskedag
12 | Store bededag
13 | Kristi Himmelfartsdag
14 | Pinsedag
15 | Anden Pinsedag
16 | Grundlovsdag
17 | Juleaften
18 | Juledag
19 | Anden juledag
20 | Nytårsaften
21 |
22 | Wikipedia
23 |
24 |
25 |
--------------------------------------------------------------------------------
/share/ES-AN.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Día de Andalucía
11 | Jueves Santo
12 |
13 |
--------------------------------------------------------------------------------
/share/ES-AR.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | San Jorge o Diya d’Aragón
11 | Día del Justicia de Aragón
12 | Jueves Santo
13 |
14 |
--------------------------------------------------------------------------------
/share/ES-AS.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Jueves Santo
11 | Día de Asturias
12 |
13 |
--------------------------------------------------------------------------------
/share/ES-CB.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Jueves Santo
11 | Día de Cantabria o Día de La Montaña
12 |
13 |
--------------------------------------------------------------------------------
/share/ES-CE.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Jueves Santo
11 | San Antonio
12 | San Juan
13 | Santa María de África
14 | Celebración del Sacrificio
15 | Día de Ceuta
16 |
17 |
--------------------------------------------------------------------------------
/share/ES-CL.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Día de Castilla y León
11 | Jueves Santo
12 |
13 |
--------------------------------------------------------------------------------
/share/ES-CM.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Día de la Región Castilla-La Mancha
11 | Jueves Santo
12 |
13 |
--------------------------------------------------------------------------------
/share/ES-CN.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Día de Canarias
11 | Jueves Santo
12 |
13 |
--------------------------------------------------------------------------------
/share/ES-CT.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Diada Nacional de Catalunya
11 | Sant Esteve
12 | Lunes de Pascua
13 |
14 |
--------------------------------------------------------------------------------
/share/ES-EX.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Día de Extremadura
11 | Jueves Santo
12 |
13 |
--------------------------------------------------------------------------------
/share/ES-GA.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Día das Letras Galegas
11 | Santiago Apóstol o Día da Patria Galega
12 | Jueves Santo
13 |
14 |
--------------------------------------------------------------------------------
/share/ES-IB.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Dia de les Illes Balears
11 | Jueves Santo
12 | Lunes de Pascua
13 |
14 |
--------------------------------------------------------------------------------
/share/ES-MD.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Fiesta de la Comunidad de Madrid
11 | Jueves Santo
12 |
13 |
--------------------------------------------------------------------------------
/share/ES-ML.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Jueves Santo
11 | Celebración del Sacrificio
12 | Día de Melilla
13 |
14 |
--------------------------------------------------------------------------------
/share/ES-MU.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | San José
11 | Día de la Región de Murcia
12 | Jueves Santo
13 |
14 |
--------------------------------------------------------------------------------
/share/ES-NA.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Jueves Santo
11 | Lunes de Pascua
12 |
13 |
--------------------------------------------------------------------------------
/share/ES-PV.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Jueves Santo
11 | Lunes de Pascua
12 | Euskadi Eguna
13 |
14 |
--------------------------------------------------------------------------------
/share/ES-RI.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Día de La Rioja
11 | Jueves Santo
12 |
13 |
--------------------------------------------------------------------------------
/share/ES-VC.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Lunes de Pascua
11 | San José
12 | Dia de la Comunitat Valenciana
13 |
14 |
--------------------------------------------------------------------------------
/share/ES.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Año Nuevo
7 | Epifanía del Señor
8 | Viernes Santo
9 | Día del Trabajador
10 | Asunción
11 | Fiesta Nacional de España
12 | Día de todos los Santos
13 | Día de la Constitución
14 | Inmaculada Concepción
15 | Navidad
16 |
17 | Wikipedia
18 |
19 |
20 |
--------------------------------------------------------------------------------
/share/FI.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Uudenvuodenpäivä
7 | Loppiainen
8 | Palmusunnuntai
9 | Pitkäperjantai
10 | Pääsiäispäivä
11 | 2. pääsiäispäivä
12 | Helatorstai
13 | Helluntai
14 | Vappu
15 | Juhannusaatto
16 | Juhannuspäivä
17 | Itsenäisyyspäivä
18 | Jouluaatto
19 | Joulupäivä
20 | Tapaninpäivä
21 |
22 |
--------------------------------------------------------------------------------
/share/FR-57.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Vendredi Saint
7 | Lendemain de Noël
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/share/FR-67.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Vendredi Saint
7 | Lendemain de Noël
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/share/FR-68.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Vendredi Saint
7 | Lendemain de Noël
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/share/FR-GF.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Abolition de l’esclavage
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/share/FR-GP.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Vendredi Saint
7 | Abolition de l’esclavage
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/share/FR-MQ.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Vendredi Saint
7 | Abolition de l’esclavage
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/share/FR-RE.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Abolition de l’esclavage
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/share/FR-YT.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Abolition de l’esclavage
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/share/FR.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Jour de l'An
7 | Lundi de Pâques
8 | Fête du travail
9 | Fête de la Victoire
10 | Pentecôte
11 | Lundi de Pentecôte
12 | Ascension
13 | Fête Nationale de la France
14 | Assomption
15 | Toussaint
16 | Armistice 1918
17 | Noël
18 |
19 |
--------------------------------------------------------------------------------
/share/GB-AL.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Homecoming Day
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/share/GB-EN.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | New Year's Day
7 | August Bank Holiday
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/share/GB-GU.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Liberation Day
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/share/GB-IM.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Tourist Trophy Senior Race Day
7 | Tynwald Day
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/share/GB-JE.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Liberation Day
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/share/GB-NI.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Saint Patrick's Day
7 | Battle of the Boyne
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/share/GB-SC.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | New Year's Day
7 | New Year's Day
8 | Easter Monday
9 | August Bank Holiday
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/share/GB-WA.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | New Year's Day
7 | August Bank Holiday
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/share/GB.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | New Year's Day
7 | Good Friday
8 | Easter Monday
9 | Easter Sunday
10 | Early May Bank Holiday
11 | Spring Bank Holiday
12 | Christmas Day
13 | Boxing Day
14 |
15 |
--------------------------------------------------------------------------------
/share/GR.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Πρωτοχρονιά
7 | Θεοφάνεια
8 | Καθαρά Δευτέρα
9 | Ευαγγελισμός της Θεοτόκου/Εικοστή Πέμπτη Μαρτίου
10 | Μεγάλη Παρασκευή
11 | Κυριακή του Πάσχα
12 | Δευτέρα του Πάσχα
13 | Εργατική Πρωτομαγιά
14 | Πεντηκοστή'
15 | Δευτέρα Πεντηκοστής
16 | Κοίμηση της Θεοτόκου
17 | Χριστούγεννα
18 | Σύναξις Υπεραγίας Θεοτόκου Μαρίας
19 |
20 |
--------------------------------------------------------------------------------
/share/GY.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | New Year's Day
11 | Republic Day
12 | Phagwah
13 | Good Friday
14 | Easter Monday
15 | Labour
16 | Arrival Day
17 | Independence Day
18 | CARICOM Day
19 | Emancipation Day
20 | Diwali
21 | Christmas Day
22 | Boxing Day
23 | Youman-Nabi
24 | Youman-Nabi
25 | Eid-ul-Adha
26 |
27 |
--------------------------------------------------------------------------------
/share/IT.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | Capodanno
6 | Epifania
7 | Festa della Liberazione
8 | Pasqua
9 | Pasquetta
10 | Festa del Lavoro
11 | Festa della Repubblica
12 | Assunzione
13 | Tutti i santi
14 | Immacolata Concezione
15 | Natale
16 | Santo Stefano
17 | Festa del tricolore
18 | Giorno della Memoria
19 | Giorno dell'Unità Nazionale e Festa delle Forze Armate
20 |
21 | Wikipedia
22 |
23 |
24 |
--------------------------------------------------------------------------------
/share/IT_BZ.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Lunedì di Pentecoste
10 |
11 |
--------------------------------------------------------------------------------
/share/KM.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | Wikipedia
9 |
10 | New Year's Day
11 | Cheikh Al Maarouf Day
12 | Labour Day
13 | National Day
14 | Maore Day
15 | Eid al-Fitr
16 | Eid al-Adha
17 | Islamic New Year
18 | Mawlid
19 | Laylat al-Mi'raj
20 |
21 |
--------------------------------------------------------------------------------
/share/NF.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Wikipedia
8 |
9 | New Year's Day
10 | Australia Day
11 | Norfolk Island Foundation Day
12 | Good Friday
13 | Easter Monday
14 | Anzac Day
15 | Bounty Day
16 | King's Birthday
17 | Norfolk Island Agricultural Show
18 | Thanksgiving Day
19 | Christmas Day
20 | Boxing Day
21 |
22 |
--------------------------------------------------------------------------------
/share/NL.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Nieuwjaarsdag
7 | Goede Vrijdag
8 | Pasen
9 | Pasen
10 | Koningsdag
11 | Bevrijdingsdag
12 | Bevrijdingsdag
13 | Hemelvaartsdag
14 | Pinksteren
15 | Pinksteren
16 | Pakjesavond
17 | Kerstmis
18 | Kerstmis
19 |
20 |
--------------------------------------------------------------------------------
/share/NO.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Første nyttårsdag
7 | Skjærtorsdag
8 | Langfredag
9 | Første påskedag
10 | Andre påskedag
11 | Første mai
12 | Syttende mai or Grunnlovsdagen
13 | Kristi himmelfartsdag
14 | Første pinsedag
15 | Andre pinsedag
16 | Første juledag
17 | Andre juledag
18 |
19 | Wikipedia
20 |
21 |
22 |
--------------------------------------------------------------------------------
/share/PL.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Nowy Rok
7 | Święto Trzech Króli
8 | pierwszy dzień Wielkiej Nocy
9 | drugi dzień Wielkiej Nocy
10 | Święto Państwowe
11 | Święto Narodowe Trzeciego Maja
12 | pierwszy dzień Zielonych Świątek
13 | dzień Bożego Ciała
14 | Wniebowzięcie Najświętszej Maryi Panny
15 | Wszystkich Świętych
16 | Narodowe Święto Niepodległości
17 | pierwszy dzień Bożego Narodzenia
18 | drugi dzień Bożego Narodzenia
19 |
20 | Wikipedia
21 |
22 |
23 |
--------------------------------------------------------------------------------
/share/PT-20.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Dia da Região Autónoma dos Açores
11 |
12 |
--------------------------------------------------------------------------------
/share/PT-30.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Dia da Região Autónoma da Madeira e das Comunidades Madeirenses
11 | Primeira Oitava
12 |
13 |
--------------------------------------------------------------------------------
/share/PT.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Ano Novo
7 | Carnaval
8 | Sexta-feira Santa
9 | Domingo de Páscoa
10 | Corpo de Deus
11 | Dia da Liberdade
12 | Dia do Trabalhador
13 | Dia de Portugal, de Camões e das Comunidades Portuguesas
14 | Assunção de Nossa Senhora
15 | Implantação da República
16 | Dia de Todos-os-Santos
17 | Restauração da Independência
18 | Imaculada Conceição
19 | Natal
20 |
21 | Wikipedia
22 | Official holiday rules
23 |
24 |
25 |
--------------------------------------------------------------------------------
/share/PY.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | Ano Nuevo
11 | Dia de los héroes
12 | Jueves Santo
13 | Viernes Santo
14 | Día de los Trabajadores
15 | Dia de la Independencia
16 | Dia de la Paz del Chaco
17 | Fundación de Asunción
18 | Victoria de Boquerón
19 | Virgen de Caacupé
20 | Día de Navidad
21 |
22 |
--------------------------------------------------------------------------------
/share/SR.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | New Years Day
11 | Labour Day
12 | Phagwah
13 | Good Friday
14 | Prawas Din
15 | Keti koti
16 |
17 | Indigenous People's Day
18 |
19 |
20 |
21 | Diwali
22 | Eid-ul-Adha
23 | Halloween
24 | Christmas Day
25 |
26 |
--------------------------------------------------------------------------------
/share/TD.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Wikipedia
8 |
9 | New Year's Day
10 | International Women's Day
11 | Labour Day
12 | Easter Monday
13 | African Liberation Day
14 | Independence Day
15 | All Saints Day
16 | Republic Day
17 | Freedom and Democracy Day
18 | Christmas Day
19 | Mawlid
20 | Eid al-Fitr
21 | Eid al-Adha
22 |
23 |
--------------------------------------------------------------------------------
/share/US.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | New Year's Day
7 | Birthday of Martin Luther King, Jr.
8 | Washington's Birthday
9 | Memorial Day
10 | Juneteenth National Independence Day
11 | Independence Day
12 | Labor Day
13 | Columbus Day
14 | Veterans Day
15 | Thanksgiving Day
16 | Christmas Day
17 |
18 |
19 | Wikipedia
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/share/de_LU.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Neujahr
7 | Ostersonntag
8 | Ostermontag
9 | Tag der Arbeit
10 | Christi Himmelfahrt
11 | Pfingstsonntag
12 | Pfingstmontag
13 | Nationalfeiertag
14 | Maria Himmelfahrt
15 | Allerheiligen
16 | Weihnachten
17 | Zweiter Weihnachtsfeiertag
18 |
19 |
--------------------------------------------------------------------------------
/share/en_CA-AB.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Family Day
10 | Victoria Day
11 | Heritage Day
12 | Thanksgiving
13 | Remembrance Day
14 | Boxing Day
15 |
16 |
--------------------------------------------------------------------------------
/share/en_CA-BC.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Family Day
10 | Victoria Day
11 | British Columbia Day
12 | Thanksgiving
13 | Remembrance Day
14 |
15 |
--------------------------------------------------------------------------------
/share/en_CA-MB.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Louis Riel Day
10 | Victoria Day
11 | Saskatchewan Day
12 | Thanksgiving
13 |
14 |
--------------------------------------------------------------------------------
/share/en_CA-NB.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Family Day
10 | Victoria Day
11 | New Brunswick Day
12 | Remembrance Day
13 | Boxing Day
14 |
15 |
--------------------------------------------------------------------------------
/share/en_CA-NL.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Saint Patrick's Day
10 | Saint George's Day
11 | Discovery Day
12 | Orangemen's Day
13 | Civic Holiday
14 | Armistice Day
15 |
16 |
--------------------------------------------------------------------------------
/share/en_CA-NS.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Heritage Day
10 | Victoria Day
11 | Natal Day
12 | Remembrance Day
13 | Boxing Day
14 |
15 |
--------------------------------------------------------------------------------
/share/en_CA-NT.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Victoria Day
10 | National Aboriginal Day
11 | Civic Holiday
12 | Thanksgiving
13 | Remembrance Day
14 |
15 |
--------------------------------------------------------------------------------
/share/en_CA-NU.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Victoria Day
10 | Civic Holiday
11 | Thanksgiving
12 | Remembrance Day
13 |
14 |
--------------------------------------------------------------------------------
/share/en_CA-ON.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Family Day
10 | Victoria Day
11 | Civic Holiday
12 | Thanksgiving
13 | Boxing Day
14 |
15 |
--------------------------------------------------------------------------------
/share/en_CA-PE.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Islander Day
10 | Easter Monday
11 | Victoria Day
12 | Gold Cup Parade Day
13 | Remembrance Day
14 | Boxing Day
15 |
16 |
--------------------------------------------------------------------------------
/share/en_CA-QC.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | National Patriots' Day
10 | National Holiday
11 | Thanksgiving
12 |
13 |
--------------------------------------------------------------------------------
/share/en_CA-SK.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Family Day
10 | Victoria Day
11 | Civic Holiday
12 | Thanksgiving
13 | Remembrance Day
14 |
15 |
--------------------------------------------------------------------------------
/share/en_CA-YT.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Victoria Day
10 | National Aboriginal Day
11 | National Holiday
12 | Heritage Day
13 | Discovery Day
14 | Thanksgiving
15 | Remembrance Day
16 |
17 |
--------------------------------------------------------------------------------
/share/en_CA.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | New Year's Day
7 | Good Friday
8 | Canada Day
9 | Labour Day
10 | Christmas Day
11 |
12 | Wikipedia
13 |
14 |
15 |
--------------------------------------------------------------------------------
/share/en_DZ.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Wikipedia
8 |
9 | New Year's Day
10 | Amazigh New Year
11 | Labour Day
12 | Independence Day
13 | Revolution Day
14 | Islamic New Year
15 | Ashura
16 | Mawlid
17 | Eid al-Fitr
18 | Eid al-Adha
19 |
20 |
--------------------------------------------------------------------------------
/share/en_IE.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | New Year's Day
7 | Saint Patrick's Day
8 | Easter Monday
9 | May Day
10 | June Holiday
11 | August Holiday
12 | October Holiday
13 | Christmas Day
14 | Saint Stephen's Day
15 |
16 | Wikipedia
17 |
18 |
19 |
--------------------------------------------------------------------------------
/share/fr_BE.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Nouvel An
7 | Pâques
8 | Lundi de Pâques
9 | Fête du Travail
10 | Ascension
11 | Pentecôte
12 | Lundi de Pentecôte
13 | Fête nationale
14 | Assomption
15 | Toussaint
16 | Jour de l'Armistice
17 | Noël
18 |
19 |
--------------------------------------------------------------------------------
/share/fr_CA-AB.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Fête de la famille
10 | Fête de la Reine
11 | Fête du patrimoine
12 | Action de grâce
13 | Jour du Souvenir
14 | Lendemain de Noël
15 |
16 |
--------------------------------------------------------------------------------
/share/fr_CA-BC.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Fête de la famille
10 | Fête de la Reine
11 | Jour de la Colombie-Britannique
12 | Action de grâce
13 | Jour du Souvenir
14 |
15 |
--------------------------------------------------------------------------------
/share/fr_CA-MB.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Journée Louis Riel
10 | Fête de la Reine
11 | Jour de Saskatchewan
12 | Action de grâce
13 |
14 |
--------------------------------------------------------------------------------
/share/fr_CA-NB.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Fête de la famille
10 | Fête de la Reine
11 | Jour de Nouveau Brunswick
12 | Jour du Souvenir
13 | Lendemain de Noël
14 |
15 |
--------------------------------------------------------------------------------
/share/fr_CA-NL.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Jour de la Saint-Patrick
10 | Jour de St. George
11 | Journée découverte
12 | Fête des orangistes
13 | Premier lundi d'août
14 | Jour de l'Armistice
15 |
16 |
--------------------------------------------------------------------------------
/share/fr_CA-NS.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Fête du Patrimoine
10 | Fête de la Reine
11 | Jour de la Fondation
12 | Jour du Souvenir
13 | Lendemain de Noël
14 |
15 |
--------------------------------------------------------------------------------
/share/fr_CA-NT.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Fête de la Reine
10 | Journée nationale des Autochthones
11 | Premier lundi d'août
12 | Action de grâce
13 | Jour du Souvenir
14 |
15 |
--------------------------------------------------------------------------------
/share/fr_CA-NU.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Fête de la Reine
10 | Premier lundi d'août
11 | Action de grâce
12 | Jour du Souvenir
13 |
14 |
--------------------------------------------------------------------------------
/share/fr_CA-ON.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Fête de la famille
10 | Fête de la Reine
11 | Premier lundi d'août
12 | Action de grâce
13 | Lendemain de Noël
14 |
15 |
--------------------------------------------------------------------------------
/share/fr_CA-PE.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Fête des Insulaires
10 | Lundi de Pâques
11 | Fête de la Reine
12 | Défilé de la Coupe d'or
13 | Jour du Souvenir
14 | Lendemain de Noël
15 |
16 |
--------------------------------------------------------------------------------
/share/fr_CA-QC.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Journée nationale des patriotes
10 | Fête nationale du Québec
11 | Action de grâce
12 |
13 |
--------------------------------------------------------------------------------
/share/fr_CA-SK.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Fête de la famille
10 | Fête de la Reine
11 | Premier lundi d'août
12 | Action de grâce
13 | Jour du Souvenir
14 |
15 |
--------------------------------------------------------------------------------
/share/fr_CA-YT.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 | Fête de la Reine
10 | Journée nationale des Autochthones
11 | Saint-Jean-Baptiste
12 | Fête du patrimoine
13 | Jour de la Découverte
14 | Action de grâce
15 | Jour du Souvenir
16 |
17 |
--------------------------------------------------------------------------------
/share/fr_CA.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Jour de l'An
7 | Vendredi saint
8 | Fête du Canada
9 | Fête du travail
10 | Noël
11 |
12 | Wikipedia
13 |
14 |
15 |
--------------------------------------------------------------------------------
/share/fr_LU.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Jour de l'an
7 | Pâques
8 | Lundi de Pâques
9 | Fête du Travail
10 | Ascension
11 | Pentecôte
12 | Lundi de Pentecôte
13 | Fête nationale
14 | Assomption
15 | Toussaint
16 | Noël
17 | St.Etienne
18 |
19 |
--------------------------------------------------------------------------------
/share/ga_IE.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Lá Caille
7 | Lá Fhéile Pádraig
8 | Luan Cásca
9 | Lá Bealtaine
10 | Lá Saoire i mí an Mheithimh
11 | Lá Saoire i mí Lúnasa
12 | Lá Saoire i mí Dheireadh Fómhair
13 | Lá Nollag
14 | Lá Fhéile Stiofáin
15 |
16 | Wikipedia
17 |
18 |
19 |
--------------------------------------------------------------------------------
/share/lb_LU.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Neijoerschdag
7 | Ouschter
8 | Ouschterméindeg
9 | Dag vun der Aarbecht
10 | Christi Himmelfaart
11 | Péngscht
12 | Péngschtméindeg
13 | Groussherzogsgebuertsdag
14 | Mariä Himmelfaart
15 | Allerhellgen
16 | Chrëschtdag
17 | Stiefesdag
18 |
19 |
--------------------------------------------------------------------------------
/share/nl_BE.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Nieuwjaar
7 | Paas
8 | Paasmaandag
9 | Dag van de arbeid
10 | Onze Lieve Heer hemelvaart
11 | Pinkster
12 | Pinkstermaandag
13 | Nationale feestdag
14 | Onze Lieve Vrouw hemelvaart
15 | Allerheiligen
16 | Wapenstilstand
17 | Kerstmis
18 |
19 |
--------------------------------------------------------------------------------
/src/Factory/DateFactory.php:
--------------------------------------------------------------------------------
1 |
5 | *
6 | * Licenses under the MIT-license. For details see the included file LICENSE.md
7 | */
8 |
9 | declare(strict_types=1);
10 |
11 | namespace Org_Heigl\Holidaychecker\Factory;
12 |
13 | use DOMElement;
14 | use Org_Heigl\Holidaychecker\CalendarDayFactory;
15 | use Org_Heigl\Holidaychecker\HolidayIteratorItemInterface;
16 | use Org_Heigl\Holidaychecker\IteratorItem\Date;
17 |
18 | class DateFactory implements ItemFromDomElementCreator
19 | {
20 | public function itemFromDomElement(DOMElement $element): ?HolidayIteratorItemInterface
21 | {
22 | if ($element->nodeName !== 'date') {
23 | return null;
24 | }
25 |
26 | $day = CalendarDayFactory::createCalendarDay(
27 | (int) $element->getAttribute('day'),
28 | (int) $element->getAttribute('month'),
29 | ($element->hasAttribute('calendar') ? $element->getAttribute('calendar') : 'gregorian')
30 | );
31 |
32 | if ($element->hasAttribute('year')) {
33 | $day->setYear((int) $element->getAttribute('year'));
34 | }
35 |
36 | $date = new Date(
37 | $element->textContent,
38 | $element->getAttribute('free') === "true",
39 | $day,
40 | );
41 |
42 | return $date;
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/Factory/DateFollowupFactory.php:
--------------------------------------------------------------------------------
1 |
5 | *
6 | * Licenses under the MIT-license. For details see the included file LICENSE.md
7 | */
8 |
9 | declare(strict_types=1);
10 |
11 | namespace Org_Heigl\Holidaychecker\Factory;
12 |
13 | use DOMElement;
14 | use Org_Heigl\Holidaychecker\CalendarDayFactory;
15 | use Org_Heigl\Holidaychecker\HolidayIteratorItemInterface;
16 | use Org_Heigl\Holidaychecker\IteratorItem\DateFollowUp;
17 | use function explode;
18 |
19 | class DateFollowupFactory implements ItemFromDomElementCreator
20 | {
21 | public function itemFromDomElement(DOMElement $element): ?HolidayIteratorItemInterface
22 | {
23 | if ($element->nodeName !== 'dateFollowUp') {
24 | return null;
25 | }
26 |
27 | $day = CalendarDayFactory::createCalendarDay(
28 | (int) $element->getAttribute('day'),
29 | (int) $element->getAttribute('month'),
30 | ($element->hasAttribute('calendar') ? $element->getAttribute('calendar') : 'gregorian')
31 | );
32 |
33 | $replaced = [];
34 | if ($element->hasAttribute('replaced')) {
35 | /** @var array<"sunday"|"monday"|"tuesday"|"wednesday"|"thursday"|"friday"|"saturday"> $replaced */
36 | $replaced = explode(' ', $element->getAttribute('replaced'));
37 | }
38 |
39 | return new DateFollowUp(
40 | $element->textContent,
41 | $element->getAttribute('free') === "true",
42 | $day,
43 | $element->getAttribute('followup'),
44 | $replaced
45 | );
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/src/Factory/DecorateFromDomElement.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * Licenses under the MIT-license. For details see the included file LICENSE.md
9 | */
10 |
11 | namespace Org_Heigl\Holidaychecker\Factory;
12 |
13 | use DOMElement;
14 | use Org_Heigl\Holidaychecker\HolidayIteratorItemInterface;
15 |
16 | interface DecorateFromDomElement
17 | {
18 | public function decorate(HolidayIteratorItemInterface $element, DOMElement $domElement): HolidayIteratorItemInterface;
19 | }
20 |
--------------------------------------------------------------------------------
/src/Factory/EasterFactory.php:
--------------------------------------------------------------------------------
1 |
5 | *
6 | * Licenses under the MIT-license. For details see the included file LICENSE.md
7 | */
8 |
9 | declare(strict_types=1);
10 |
11 | namespace Org_Heigl\Holidaychecker\Factory;
12 |
13 | use DOMElement;
14 | use Org_Heigl\Holidaychecker\HolidayIteratorItemInterface;
15 | use Org_Heigl\Holidaychecker\IteratorItem\Easter;
16 |
17 | class EasterFactory implements ItemFromDomElementCreator
18 | {
19 | public function itemFromDomElement(DOMElement $element): ?HolidayIteratorItemInterface
20 | {
21 | if ($element->nodeName !== 'easter') {
22 | return null;
23 | }
24 |
25 | return new Easter(
26 | $element->textContent,
27 | $element->getAttribute('free') === "true",
28 | (int) $element->getAttribute('offset')
29 | );
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/Factory/EasterOrthodoxFactory.php:
--------------------------------------------------------------------------------
1 |
5 | *
6 | * Licenses under the MIT-license. For details see the included file LICENSE.md
7 | */
8 |
9 | declare(strict_types=1);
10 |
11 | namespace Org_Heigl\Holidaychecker\Factory;
12 |
13 | use DOMElement;
14 | use Org_Heigl\Holidaychecker\HolidayIteratorItemInterface;
15 | use Org_Heigl\Holidaychecker\IteratorItem\EasterOrthodox;
16 |
17 | class EasterOrthodoxFactory implements ItemFromDomElementCreator
18 | {
19 | public function itemFromDomElement(DOMElement $element): ?HolidayIteratorItemInterface
20 | {
21 | if ($element->nodeName !== 'easterorthodox') {
22 | return null;
23 | }
24 |
25 | return new EasterOrthodox(
26 | $element->textContent,
27 | $element->getAttribute('free') === "true",
28 | (int) $element->getAttribute('offset')
29 | );
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/Factory/ItemFromDomElementCreator.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * Licenses under the MIT-license. For details see the included file LICENSE.md
9 | */
10 |
11 | namespace Org_Heigl\Holidaychecker\Factory;
12 |
13 | use DOMElement;
14 | use Org_Heigl\Holidaychecker\HolidayIteratorItemInterface;
15 |
16 | interface ItemFromDomElementCreator
17 | {
18 | public function itemFromDomElement(DOMElement $element): ?HolidayIteratorItemInterface;
19 | }
20 |
--------------------------------------------------------------------------------
/src/Factory/ObservanceDecoratorFactory.php:
--------------------------------------------------------------------------------
1 |
5 | *
6 | * Licenses under the MIT-license. For details see the included file LICENSE.md
7 | */
8 |
9 | declare(strict_types=1);
10 |
11 | namespace Org_Heigl\Holidaychecker\Factory;
12 |
13 | use DOMElement;
14 | use Org_Heigl\Holidaychecker\HolidayIteratorItemInterface;
15 | use Org_Heigl\Holidaychecker\ObservanceDecorator;
16 |
17 | class ObservanceDecoratorFactory implements DecorateFromDomElement
18 | {
19 | public function decorate(HolidayIteratorItemInterface $element, DOMElement $domElement): HolidayIteratorItemInterface
20 | {
21 | if (!$domElement->hasAttribute('firstobservance') && !$domElement->hasAttribute('lastobservance')) {
22 | return $element;
23 | }
24 |
25 | return new ObservanceDecorator(
26 | $element,
27 | $domElement->hasAttribute('firstobservance') ? (int) $domElement->getAttribute('firstobservance') : null,
28 | $domElement->hasAttribute('lastobservance') ? (int) $domElement->getAttribute('lastobservance') : null,
29 | );
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/Factory/RelativeFactory.php:
--------------------------------------------------------------------------------
1 |
5 | *
6 | * Licenses under the MIT-license. For details see the included file LICENSE.md
7 | */
8 |
9 | declare(strict_types=1);
10 |
11 | namespace Org_Heigl\Holidaychecker\Factory;
12 |
13 | use DOMElement;
14 | use Org_Heigl\Holidaychecker\HolidayIteratorItemInterface;
15 | use Org_Heigl\Holidaychecker\IteratorItem\Relative;
16 |
17 | class RelativeFactory implements ItemFromDomElementCreator
18 | {
19 | public function itemFromDomElement(DOMElement $element): ?HolidayIteratorItemInterface
20 | {
21 | if ($element->nodeName !== 'relative') {
22 | return null;
23 | }
24 |
25 | return new Relative(
26 | $element->textContent,
27 | $element->getAttribute('free') === "true",
28 | (int) $element->getAttribute('day'),
29 | (int) $element->getAttribute('month'),
30 | $element->getAttribute('relation')
31 | );
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/SwapDirection.php:
--------------------------------------------------------------------------------
1 |
5 | *
6 | * Licenses under the MIT-license. For details see the included file LICENSE.md
7 | */
8 |
9 | declare(strict_types=1);
10 |
11 | namespace Org_Heigl\Holidaychecker;
12 |
13 | final class SwapDirection
14 | {
15 | private const FORWARD = 'forward';
16 | private const REWIND = 'rewind';
17 | /** @var array */
18 | private static $instances = [];
19 | /** @var string */
20 | private $value;
21 |
22 | private function __construct(string $value)
23 | {
24 | $this->value = $value;
25 | }
26 |
27 | public static function forward(): self
28 | {
29 | if (!isset(self::$instances[self::FORWARD])) {
30 | self::$instances[self::FORWARD] = new self(self::FORWARD);
31 | }
32 |
33 | return self::$instances[self::FORWARD];
34 | }
35 |
36 | public static function rewind(): self
37 | {
38 | if (!isset(self::$instances[self::REWIND])) {
39 | self::$instances[self::REWIND] = new self(self::REWIND);
40 | }
41 |
42 | return self::$instances[self::REWIND];
43 | }
44 |
45 | public function getValue(): string
46 | {
47 | return $this->value;
48 | }
49 |
50 | public function getDateTimeDirection(): string
51 | {
52 | switch ($this->value) {
53 | case self::REWIND:
54 | return 'previous';
55 | case self::FORWARD:
56 | return 'next';
57 | }
58 |
59 | return '';
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/src/SwapRule.php:
--------------------------------------------------------------------------------
1 |
5 | *
6 | * Licenses under the MIT-license. For details see the included file LICENSE.md
7 | */
8 |
9 | declare(strict_types=1);
10 |
11 | namespace Org_Heigl\Holidaychecker;
12 |
13 | class SwapRule
14 | {
15 | /** @var SwapDirection */
16 | private $swapDirection;
17 |
18 | /** @var GregorianWeekday */
19 | private $swapToDay;
20 |
21 | /** @var GregorianWeekday[] */
22 | private $swapWhenDay;
23 |
24 | public function __construct(SwapDirection $direction, GregorianWeekday $swapToGregorianDay, GregorianWeekday ...$swapWhenGregorianDay)
25 | {
26 | $this->swapDirection = $direction;
27 | $this->swapToDay = $swapToGregorianDay;
28 | $this->swapWhenDay = $swapWhenGregorianDay;
29 | }
30 |
31 | public function getDirection(): SwapDirection
32 | {
33 | return $this->swapDirection;
34 | }
35 |
36 | public function getSwapToDay(): GregorianWeekday
37 | {
38 | return $this->swapToDay;
39 | }
40 |
41 | /**
42 | * @return GregorianWeekday[]
43 | */
44 | public function getSwapWhenDays(): array
45 | {
46 | return $this->swapWhenDay;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/tests/CalendarDayFactoryTest.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * Licenses under the MIT-license. For details see the included file LICENSE.md
9 | */
10 |
11 | namespace Org_Heigl\HolidaycheckerTest;
12 |
13 | use DateTimeImmutable;
14 | use Org_Heigl\Holidaychecker\Calendar;
15 | use Org_Heigl\Holidaychecker\CalendarDayFactory;
16 | use Org_Heigl\Holidaychecker\Exceptions\UnknownCalendar;
17 | use PHPUnit\Framework\TestCase;
18 |
19 | class CalendarDayFactoryTest extends TestCase
20 | {
21 | public function testCreateCalendarDayThrowsExceptionWithInvalidCalendar(): void
22 | {
23 | self::expectException(UnknownCalendar::class);
24 | CalendarDayFactory::createCalendarDay(12, 12, 'Foo');
25 | }
26 |
27 | public function testCreateCalendarDayReturnsDay(): void
28 | {
29 | $day = CalendarDayFactory::createCalendarDay(1, 1, Calendar::CHINESE);
30 | $day->setGregorianYear(2021);
31 |
32 | self::assertTrue($day->isSameDay(new DateTimeImmutable('2021-02-12T12:00:00Z')));
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/tests/Factory/RelativeFactoryTest.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * Licensed under the MIT-license. For details see the included file LICENSE.md
9 | */
10 |
11 | namespace Org_Heigl\HolidaycheckerTest\Factory;
12 |
13 | use DOMDocument;
14 | use DOMElement;
15 | use Org_Heigl\Holidaychecker\Factory\RelativeFactory;
16 | use Org_Heigl\Holidaychecker\IteratorItem\Relative;
17 | use PHPUnit\Framework\TestCase;
18 |
19 | class RelativeFactoryTest extends TestCase
20 | {
21 | public function testCreatingRelativeItemFromWrongNodeName(): void
22 | {
23 | $node = new DOMElement('foo');
24 |
25 | $factory = new RelativeFactory();
26 | self::assertNull($factory->itemFromDomElement($node));
27 | }
28 |
29 | public function testCreatingRelativeItemFromRightNodeName(): void
30 | {
31 | $doc = new DOMDocument('1.0');
32 | $elem = $doc->createElement('relative');
33 | $node = $doc->appendChild($elem);
34 | $this->assertInstanceOf(DOMElement::class, $node);
35 | $node->setAttribute('free', 'true');
36 | $node->setAttribute('day', '1');
37 | $node->setAttribute('month', '12');
38 | $node->setAttribute('relation', 'next tuesday');
39 |
40 | $factory = new RelativeFactory();
41 | $item = $factory->itemFromDomElement($node);
42 |
43 | self::assertInstanceOf(Relative::class, $item);
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/tests/HolidayIteratorTest.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * Licensed under the MIT-license. For details see the included file LICENSE.md
9 | */
10 |
11 | namespace Org_Heigl\HolidaycheckerTest;
12 |
13 | use Org_Heigl\Holidaychecker\HolidayIterator;
14 | use Org_Heigl\Holidaychecker\HolidayIteratorItemInterface;
15 | use PHPUnit\Framework\TestCase;
16 |
17 | class HolidayIteratorTest extends TestCase
18 | {
19 | public function testAddingDifferentElementsWorksAsExpected(): void
20 | {
21 | $rightItem = $this->getMockBuilder(HolidayIteratorItemInterface::class)->getMock();
22 |
23 | $iterator = new HolidayIterator();
24 |
25 | self::assertCount(0, $iterator);
26 | $iterator->append($rightItem);
27 | self::assertCount(1, $iterator);
28 | $iterator->append('foo');
29 | self::assertCount(1, $iterator);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/tests/IteratorItem/SwapDecoratorTest.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * Licensed under the MIT-license. For details see the included file LICENSE.md
9 | */
10 |
11 | namespace Org_Heigl\HolidaycheckerTest\IteratorItem;
12 |
13 | use DateTimeImmutable;
14 | use IntlGregorianCalendar;
15 | use Org_Heigl\Holidaychecker\CalendarDay;
16 | use Org_Heigl\Holidaychecker\HolidayIteratorItemInterface;
17 | use Org_Heigl\Holidaychecker\IteratorItem\SwapDecorator;
18 | use PHPUnit\Framework\TestCase;
19 |
20 | class SwapDecoratorTest extends TestCase
21 | {
22 | public function testDateMatchesRedirectsToWrappedInstance(): void
23 | {
24 | $wrapped = $this->getMockBuilder(HolidayIteratorItemInterface::class)->getMock();
25 | $wrapped->expects($this->once())->method('dateMatches');
26 |
27 | $decorator = new SwapDecorator($wrapped, new CalendarDay(1, 1, new IntlGregorianCalendar()));
28 |
29 | $decorator->dateMatches(new DateTimeImmutable());
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/tests/SwapDirectionTest.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * Licensed under the MIT-license. For details see the included file LICENSE.md
9 | */
10 |
11 | namespace Org_Heigl\HolidaycheckerTest;
12 |
13 | use Org_Heigl\Holidaychecker\SwapDirection;
14 | use PHPUnit\Framework\TestCase;
15 |
16 | class SwapDirectionTest extends TestCase
17 | {
18 | /**
19 | * @covers \Org_Heigl\Holidaychecker\SwapDirection::forward
20 | * @covers \Org_Heigl\Holidaychecker\SwapDirection::__construct
21 | * @covers \Org_Heigl\Holidaychecker\SwapDirection::rewind
22 | * @covers \Org_Heigl\Holidaychecker\SwapDirection::getValue
23 | * @return void
24 | */
25 | public function testGettingValue(): void
26 | {
27 | self::assertSame('forward', SwapDirection::forward()->getValue());
28 | self::assertSame('rewind', SwapDirection::rewind()->getValue());
29 | }
30 |
31 | /**
32 | * @covers \Org_Heigl\Holidaychecker\SwapDirection::forward
33 | * @covers \Org_Heigl\Holidaychecker\SwapDirection::__construct
34 | * @covers \Org_Heigl\Holidaychecker\SwapDirection::rewind
35 | * @covers \Org_Heigl\Holidaychecker\SwapDirection::getDateTimeDirection
36 | * @return void
37 | */
38 | public function testGettingDateModifyValue(): void
39 | {
40 | self::assertSame('next', SwapDirection::forward()->getDateTimeDirection());
41 | self::assertSame('previous', SwapDirection::rewind()->getDateTimeDirection());
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/tests/_assets/invalid.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | date
7 |
8 |
--------------------------------------------------------------------------------
/tests/_assets/test.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | date
7 | dateFollowUp
8 | relative
9 | easter
10 | easter
11 |
12 |
--------------------------------------------------------------------------------
/tests/_assets/testDecoration.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | date
7 | dateFollowUp
8 | relative
9 |
10 |
--------------------------------------------------------------------------------