Code Comments
Programming Forum and web based access to our favorite programming groups.I need to populate a Pg database with holidays (US, Federal, Christian, Islamic, and Jewish). I didn't find anything on CPAN (but you have to know what to search for). The Islamic and Jewish ones are a little problematic because they can shift for year to year. Do you know of a resource I can look at? Robert
Post Follow-up to this messageOn Wed, 20 Apr 2005, Robert wrote: > I need to populate a Pg database with holidays (US, Federal, > Christian, Islamic, and Jewish). I didn't find anything on CPAN (but > you have to know what to search for). The Islamic and Jewish ones are > a little problematic because they can shift for year to year. Do you > know of a resource I can look at? How far out do you need to go? A few years? If so, there's little point in calculating the dates -- just download a list of dates and pump that into your database by whatever means you like. An excellent source for this kind of data is ICalShare. This section on their site should be what you're looking for: <http://icalshare.com/index.php?topic=holidays> Note that by just downloading the data, this ceases to be a Perl problem, unless you want to use Perl to parse the ICS / VCal data... -- Chris Devers
Post Follow-up to this messageOn 4/20/05, Robert <catcher@linuxmail.org> wrote: > I need to populate a Pg database with holidays (US, Federal, Christian, > Islamic, and Jewish). I didn't find anything on CPAN (but you have to kno= w > what to search for). The Islamic and Jewish ones are a little problematic > because they can shift for year to year. Do you know of a resource I can > look at? >=20 I know of: [url]http://www.inoff.com/hebcal/[/url] http://search.cpan.org/dist/Date-Holidays/ HTH, --=20 Offer Kaye
Post Follow-up to this messageOn Wed, 20 Apr 2005 11:11:00 -0400, Robert wrote: > I need to populate a Pg database with holidays (US, Federal, Christian, > Islamic, and Jewish). I didn't find anything on CPAN (but you have to know > what to search for). The Islamic and Jewish ones are a little problematic > because they can shift for year to year. Do you know of a resource I can > look at? Once you find the rules, I suggest using the framework of Date::Calendar and Date::Calendar::Profiles to do your date calculations. -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.