How to find out if some kind of working day

Is there any library, template or general way of working with working days? I mean, is there a relatively well-accepted way to find out if a work day is a weekend, not a holiday, etc.?

Also, assuming there is such a thing, it would be useful to know if the day has any “detail”? For example, here in Brazil, we only work in the afternoon in Ash Wednesday. Is there some kind of flexible structure to deal with such changes?

I could implement this business logic without any difficulty, but I would not want to reinvent the wheel, and other user suggestions may be useful. Moreover, this seems like a very recurring problem.

Thanks in advance!

+5
source share
3 answers

If you use Java programming, you can use this: Holiday and Holiday Handler Algorithms

+3
source

Most of the people I know use calendar tablefor this kind of thing. My table contains information for more than 80 countries

+2
source

Google has calendars that you can probably use.

Check this out, for example: http://www.google.com/calendar/feeds/en.brazilian%23holiday%40group.v.calendar.google.com/public/basic

You must use your Google account to view them, and there may be some restrictions on the license to use, but there is information.

+1
source

All Articles