{"id":1140,"date":"2011-10-22T14:40:30","date_gmt":"2011-10-22T12:40:30","guid":{"rendered":"http:\/\/www.tutego.de\/blog\/javainsel\/2011\/10\/eine-java-bibliothek-fr-feiertage-jollyday\/"},"modified":"2011-10-22T14:40:30","modified_gmt":"2011-10-22T12:40:30","slug":"eine-java-bibliothek-fr-feiertage-jollyday","status":"publish","type":"post","link":"https:\/\/www.tutego.de\/blog\/javainsel\/2011\/10\/eine-java-bibliothek-fr-feiertage-jollyday\/","title":{"rendered":"Eine Java-Bibliothek f&uuml;r Feiertage: Jollyday"},"content":{"rendered":"<p><a href=\"http:\/\/jollyday.sourceforge.net\/\">http:\/\/jollyday.sourceforge.net\/<\/a>. Beispiel von der Webseite:<\/p>\n<ol>\n<ol>\n<li>\n<p>To get a <tt>HolidayManager<\/tt> instance for US holidays: <\/p>\n<pre>HolidayManager m = HolidayManager.getInstance(HolidayCalendar.UNITED_STATES);<\/pre>\n<\/li>\n<li>To get the holidays for the state New York:\n<pre>  Set&lt;Holiday&gt; holidays = m.getHolidays(2010, &quot;ny&quot;);<\/pre>\n<\/li>\n<li>To get the holidays for New York City in the state New York:\n<pre>  Set&lt;Holiday&gt; holidays = m.getHolidays(2010, &quot;ny&quot;, &quot;nyc&quot;);<\/pre>\n<\/li>\n<li>To get a <tt>HolidayManager<\/tt> instance for your own holidays:\n<ol>\n<li>create a Holidays file i.e. <tt>Holidays_MyOwn.xml<\/tt><\/li>\n<li>put your holiday rules into this (for examples please the XML files in the provided JAR file in the folder holidays) <\/li>\n<li>put your <tt>Holidays_MyOwn.xml<\/tt> in your applications classpath <\/li>\n<li>to use your holiday rules create an <tt>HolidayManager<\/tt> instance by calling <tt>HolidayManager m = HolidayManager.getInstance(&quot;MyOwn&quot;);<\/tt><\/li>\n<li>call <tt>Set&lt;Holiday&gt; holidays = m.getHolidays(2010);<\/tt> to retrieve the holidays for 2010.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/ol>\n<p>Welche deutschen Feiertage erfasst werden listet <a href=\"http:\/\/jollyday.sourceforge.net\/data\/de.html\">http:\/\/jollyday.sourceforge.net\/data\/de.html<\/a> auf. Die Lib. steht unter der Apache Lizenz und stammt vom Deutschen Sven Diedrichsen.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/jollyday.sourceforge.net\/. 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&lt;Holiday&gt; holidays = m.getHolidays(2010, &quot;ny&quot;); To get the holidays for New York City in the state New York: Set&lt;Holiday&gt; holidays = m.getHolidays(2010, &quot;ny&quot;, &quot;nyc&quot;); To get a HolidayManager instance [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[4],"tags":[],"class_list":["post-1140","post","type-post","status-publish","format-standard","hentry","category-open-source"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts\/1140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/comments?post=1140"}],"version-history":[{"count":0,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts\/1140\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/media?parent=1140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/categories?post=1140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/tags?post=1140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}