Best free library or database to determine if a date is a US or international holiday?

后端 未结 2 1371
深忆病人
深忆病人 2021-01-02 20:42

In hopes of improving the relevance of year to year comparisons I would like to correct for the fact that the data last year fell on Easter, Labor Day, or whatever. What is

相关标签:
2条回答
  • 2021-01-02 21:08

    In the Java world the site you mentioned does comport an API, Instant Holiday Connection, which could be a good solution (better than screen scraping).

    The Light Development Holiday Client API is a Java class library to seamlessly integrate arbitrary other applications with the World Holiday Calendar Service to make them aware of special observation days around the globe.

    However, the free version only give access to last year Holidays...


    Another (more public) database would be Earth Calendar, free but with no visible API (back to screen scraping again)


    time and date.com does appear to have also all Holidays for all countries (with again no visible API).

    They do have a fairly complete list of Holidays though

    0 讨论(0)
  • 2021-01-02 21:09

    One approach is to let your users input national holidays that they know about and affect their work. You have to be careful though, at one of the IBs I worked for we noticed that one of the traders had entered National Kebab Day on his trading system as a Turkish holiday.

    0 讨论(0)
提交回复
热议问题