Is there any Java API for Swing which will help me to give all holidays dates in Hindu calendar of any year ?
Requirements:
- API should be open source or free.
Is there any Java API for Swing which will help me to give all holidays dates in Hindu calendar of any year ?
Requirements:
By far the easiest would be to download a public calendar containing all hindu holidays. You can surely find this on Google. Export the calendar as an iCalendar file.
Then, use iCal4j to parse this file and recover all dates required. http://ical4j.sourceforge.net/introduction.html
Surely, you do not need all mathematical rules for determining hindi holidays implemented until the year 3000?
Seems there is nothing out of the box for Hindu.
However, Jollyday might be some help. They don't support Hindu out of the box but if you get a file with the date, then you can use it.
There is no straight forward way to calculate the Hindu holidays currently. You can use JollyDay.
It allows you to configure your holidays in XML configuration files named 'Holidays_[country].xml' which contain the necessary information for determining the holidays for a year/country/region.
you can implement something like as below
URL url = new URL("file:some/path/Holidays_India.xml");
HolidayManager m = HolidayManager.getInstance(url);
Set<Holiday> holidays = m.getHolidays(2012, "in");
Refere the API usage for more details.
© 2022 - 2024 — McMap. All rights reserved.