From: brabuhr@... Date: 2007-01-03T02:57:14+09:00 Subject: Re: Detecting holidays On 1/2/07, Daniel Berger wrote: > Is there a package out there that deals with national holidays (for any > nation)? The only thing I came across what date2, but that only seems > to handle Japanese national holidays. I guess I'm looking for > something like Perl's Date::Calc [1] module or, more specifically, it's > Date::Calendar::Profiles [2] module. Or something like Perl's > Date::Holidays::XXX [3] approach (I'm not sure which is preferred these > days). > > Ideally, I'd like to be able to do something like: > > if Date.today.is_national_holiday? > exit # Don't run report on this day > end You may be able to build something that checks againt an iCalendar file of holidays. * webcal://ical.mac.com/ical/US32Holidays.ics * http://www.infinitenil.com/developers.html * http://www.macdevcenter.com/pub/a/mac/2003/09/03/rubycocoa.html