Comments (2)
The intended meaning is
N - national (missing means, that this holiday is defined for specific regions only)
R - religious (holiday with religious background)
V - variable (depending on easter date, or something like "1st weekday in month")
F - fixed (can be defined as MM-DD
)
Currently there are only two rules concerning flags defined in tests/test_holidays.py
:
- If a holiday has regions defined, it must not have flag
N
and it must have flagN
if there are no regions defined - A holiday must either have type
F
orV
, not none, not both
There is no hard rule for flag R
, currently all holidays which originate from religious feast (Easter, Christmas, St.-X-Day,...) carry it (as opposed to e.g. "Labour Day"). It may be redefined for holidays that only apply to a certain religious group, but this is not yet decided.
Side note: Timewarrior (and probably Taskwarrior) do not really use the flags, but use the region attribute to filter the holidays that matter for them in the respective refresh
script. So there is no hard use case for the flags I currently know of. It is more of a (rough) categorization for further purposes.
from holidata.
Ah, I found something in the test_holidays.py
file. Is the following correct?
N - national
R - regional
V - variable
F - Fixed
However, if I look at sv-SE
it seem like the R is more related to religious than regional.
from holidata.
Related Issues (20)
- Holidata.net domain expired? HOT 1
- Holidata.net seams down HOT 1
- Error in locale en-US, year 2024: Day after Thanksgiving HOT 1
- Error in locale de-DE HOT 1
- Error in locale pt-BR, year 2024
- Add locale for sl-SI HOT 1
- Add locale for en-AU HOT 2
- Error in locale fr-FR HOT 2
- Add locale for es-MX
- Add locale for en-india HOT 1
- Add locale for sl-SI HOT 4
- Add locale for en-ZA HOT 1
- Add support for locale en-AU HOT 1
- Error in locale en-GB, year 2022 HOT 1
- [Question] Module not installable from pypi? HOT 1
- Update legal sources for Turkish holidays HOT 1
- Locales for Scotland & Northern ireland HOT 1
- Removal of Columbus Day as an US Holiday
- Add locale for Hi-In (Hindi - India )
- Add locale for en-SG
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from holidata.