Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Cambodia holidays #1294

Merged
merged 27 commits into from
Jun 16, 2023
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
fd3e54b
[KH] extend `ThaiLunisolar` for `KHMER_CALENDAR`
PPsyrius Jun 7, 2023
2dd57d2
[KH] initial holidays implementation
PPsyrius Jun 7, 2023
ac5a4cc
[KH] add in individual holiday test cases
PPsyrius Jun 7, 2023
8e8376b
[KH] add in special in lieus for 2015-2023
PPsyrius Jun 7, 2023
56ab3dc
[KH] `en_US`. `km`, `th` l10n files
PPsyrius Jun 7, 2023
18ab78d
[KH] PH's coveralls back to 100% again
PPsyrius Jun 7, 2023
6d6e885
[KH] initial batch of suggestions
PPsyrius Jun 7, 2023
c276ddf
Merge branch 'beta' into cambodia_holidays
PPsyrius Jun 7, 2023
28a9c71
[KH] increments country count to 128
PPsyrius Jun 7, 2023
993695b
Merge branch 'beta' into cambodia_holidays
PPsyrius Jun 7, 2023
3ca1f39
[KH] refractor Cambodia testcases
PPsyrius Jun 9, 2023
772e6f0
[KH] remove redundant `((...),),` (see #1296)
PPsyrius Jun 9, 2023
aabfa03
Revert "[KH] remove redundant `((...),),` (see #1296)"
PPsyrius Jun 9, 2023
ebf92ce
Merge branch 'beta' into cambodia_holidays
PPsyrius Jun 9, 2023
b965f81
Revert "Revert "[KH] remove redundant `((...),),` (see #1296)""
PPsyrius Jun 9, 2023
05d1299
[TH] initial `ThaiCalendarHolidays` attempt
PPsyrius Jun 10, 2023
453e0e3
[KH] Migrates Cambodia `_ThaiLunisolar` to holiday groups
PPsyrius Jun 10, 2023
0a2a78b
[KH] oof, typo fixed
PPsyrius Jun 10, 2023
583f4dd
[group] `__verify+calender()` test for `ThaiCalendarHolidays`
PPsyrius Jun 10, 2023
e8b2cfa
[group] remove redundant checks
PPsyrius Jun 12, 2023
622eb7c
Merge branch 'beta' into cambodia_holidays
PPsyrius Jun 15, 2023
80b8786
Merge branch 'beta' into cambodia_holidays
PPsyrius Jun 16, 2023
bcd9a7b
[KH] migrate children's day to holiday groups
PPsyrius Jun 16, 2023
fd0bd7f
Merge branch 'beta' into cambodia_holidays
PPsyrius Jun 16, 2023
a3f71d7
[KH] turn out not all Holidays got their s removed
PPsyrius Jun 16, 2023
183aa8a
Merge branch 'beta' into cambodia_holidays
PPsyrius Jun 16, 2023
1cba9ae
[KH] adjust comment, rerun l10n
PPsyrius Jun 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Available Countries
.. _ISO 3166-2 code: https://en.wikipedia.org/wiki/ISO_3166-2
.. _ISO 639-1 code: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes

We currently support 129 country codes. The standard way to refer to a country
We currently support 130 country codes. The standard way to refer to a country
is by using its `ISO 3166-1 alpha-2 code`_, the same used for domain names, and
for a subdivision its `ISO 3166-2 code`_. Some of the countries support more
than one language for holiday names output.
Expand Down Expand Up @@ -227,6 +227,10 @@ The list of supported countries, their subdivisions and supported languages
- BI
-
-
* - Cambodia
- KH
-
- en_US, **km**, th
* - Cameroon
- CM
-
Expand Down
2 changes: 2 additions & 0 deletions holidays/calendars/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

GREGORIAN_CALENDAR = "GREGORIAN_CALENDAR"
JULIAN_CALENDAR = "JULIAN_CALENDAR"
KHMER_CALENDAR = "KHMER_CALENDAR"
THAI_CALENDAR = "THAI_CALENDAR"


def _get_nth_weekday_from(n: int, weekday: int, from_dt: date) -> date:
Expand Down
Loading