Giter Site home page Giter Site logo

Comments (2)

lauft avatar lauft commented on June 21, 2024 1

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 flag N if there are no regions defined
  • A holiday must either have type F or V, 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.

mheden avatar mheden commented on June 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.