• Post Reply Bookmark Topic Watch Topic
  • New Topic

Holidays  RSS feed

 
Tiago Fernandez
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I've been looking for a util to handle holidays in my application, and I found IBD at http://www.object-refinery.com/ibd/index.html. The problem is I think they're not developing it anymore, since all links are broken. Does anybody know a library that handles international holidays?

Thanks.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What would you like it to do? We have something in our app that computes "n" business days from today and skips holidays. Don't laugh if this algorithm is just dumb ...
 
Stuart Gray
Ranch Hand
Posts: 410
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stan, how do you handle the situation where adding one pushes future date over the date of another holiday? Do you just call this algorithm repeatedly?
 
Tiago Fernandez
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, I could do something like that, but I'd have to handle the holidays for the whole world... that's a lot of work

Thanks Stan

PS: you algorithm is not that dumb, it's just the way it should (or could) be
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, if you're trying to get out of having to even KNOW the holidays, I can't help. Do you really trust some other source to know the holidays you need to honor? We made our customer fill out a list of holidays. When the current date gets within n days of the last one on our list the holiday adjuster starts sending emails to somebody. Thousands of them. Heh heh.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!