---
title: 'Eine Java-Bibliothek für Feiertage: Jollyday'
url: 'https://tutego.de/blog/javainsel/2011/10/eine-java-bibliothek-fr-feiertage-jollyday'
markdown: 'https://tutego.de/blog/javainsel/2011/10/eine-java-bibliothek-fr-feiertage-jollyday.md'
date: '2011-10-22'
description: '. Beispiel von der Webseite: To get a HolidayManager instance for US holidays: HolidayManager m = HolidayManager.getInstance(HolidayCalendar.UNITED_STATES); To get the holidays for the state New York: ``` Set holidays = m.getHolidays(2010, "ny"); To get the holidays for New York City in the sta…'
taxonomy:
  category:
    - 'Open Source'
---

# Eine Java-Bibliothek für Feiertage: Jollyday

![Illustration einer tropischen Insel mit Palmen und einem hohen Berg](https://tutego.de/blog/javainsel/user/themes/tutego/images/insel-cover.jpg)# Java Blog für Programmierer

[Java Blog für Programmierer](https://tutego.de/blog/javainsel/)

## Eine Java-Bibliothek für Feiertage: Jollyday

22.10.2011 · [Christian Ullenboom](https://tutego.de/blog/javainsel/author/admin/)

. Beispiel von der Webseite:

1. To get a HolidayManager instance for US holidays:

    ```java
    HolidayManager m = HolidayManager.getInstance(HolidayCalendar.UNITED_STATES);
    ```
2. To get the holidays for the state New York: ``` Set holidays = m.getHolidays(2010, "ny"); ```java

    ```
3. To get the holidays for New York City in the state New York: ``` Set holidays = m.getHolidays(2010, "ny", "nyc"); ```

    ```
4. To get a HolidayManager instance for your own holidays: 
    1. create a Holidays file i.e. Holidays\_MyOwn.xml
    2. put your holiday rules into this (for examples please the XML files in the provided JAR file in the folder holidays)
    3. put your Holidays\_MyOwn.xml in your applications classpath
    4. to use your holiday rules create an HolidayManager instance by calling HolidayManager m = HolidayManager.getInstance("MyOwn");
    5. call Set<Holiday> holidays = m.getHolidays(2010); to retrieve the holidays for 2010.

Welche deutschen Feiertage erfasst werden listet auf. Die Lib. steht unter der Apache Lizenz und stammt vom Deutschen Sven Diedrichsen.

Kategorien: [Open Source](https://tutego.de/blog/javainsel/category/open-source/)

## 2 Kommentare

**Sven Diedrichsen** · [03.12.2012 22:53](#comment-4403)

Moin Christian, vielen Dank für deine Empfehlung. Gruß Sven

**Marcus** · [24.10.2011 09:13](#comment-3926)

Moin Christian, vielen Dank für den Hinweis auf diese Bibliothek. Könnte genau das sein, was ich suche! Grüße, Marcus

Die bisherigen Kommentare wurden aus WordPress übernommen. Neue Kommentare sind derzeit geschlossen.

[← Alle Beiträge](https://tutego.de/blog/javainsel/)

---

## Navigation

- Previous: [Zen-Coding: Plugins für’ schnelle Schreiben von HTML/XML](https://tutego.de/blog/javainsel/2011/10/zen-coding-plugins-fr-schnelle-schreiben-von-htmlxml.md)
- Next: [Schöner Vergleich von Java-Serialisierern](https://tutego.de/blog/javainsel/2011/10/schner-vergleich-von-java-serialisierern.md)
