Skip to content

Commit

Permalink
Update README SubdivisionCodes (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager authored Feb 9, 2024
1 parent cac6036 commit 1774f62
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,26 @@ What variants of holidays are supported by `Nager.Date`

## Data precision

| Precision | Supported |
| ---------------------------------- | --------- |
| Country Public Holiday | Yes |
| Subdivisions Holiday (ISO 3166-2) | Yes |
| City Holiday | No |
There is no generally valid designation for the next administrative level of countries.
"Nager.Date" supports the initial subdivision of a country, but we will not support a detailed level because the effort required is too high.

To keep it generally valid, we will treat this subdivision as `SubdivisionCodes`, this will replace the current designation `Counties`.

- **United States of America** use `States`
- **Germany** use `States`
- **Austria** use `States`
- **Switzerland** use `Cantons`
- **Brazil** use `States`
- **Australia** use `States` or `Territories`
- **Russia** use `Federal districts`
- **Canada** use `Province` or `Territories`

| Precision | Supported |
| ---------------------------------------------------------------------------- | --------- |
| Public Holidays for specific Country | Yes |
| Holidays for Subdivisions based on ISO 3166-2 (first level) | Yes |
| Holidays for Cities | No |
| Holidays for Regions | No |

## Areas of Application

Expand Down

0 comments on commit 1774f62

Please sign in to comment.