Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Holidays
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



Report this thread to moderator Post Follow-up to this message
Old Post
Robert
04-21-05 01:56 AM


Re: Holidays
On 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

Report this thread to moderator Post Follow-up to this message
Old Post
Chris Devers
04-21-05 01:56 AM


Re: Holidays
On 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

Report this thread to moderator Post Follow-up to this message
Old Post
Offer Kaye
04-21-05 01:56 AM


Re: Holidays
On 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/


Report this thread to moderator Post Follow-up to this message
Old Post
Peter Scott
04-21-05 08:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:22 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.